16 lines
694 B
Groovy
16 lines
694 B
Groovy
[
|
|
new MagicCDA() {
|
|
@Override
|
|
public void modPowerToughness(final MagicGame game,final MagicPlayer player,final MagicPowerToughness pt) {
|
|
final int battlefield =
|
|
player.getNrOfPermanents(MagicSubType.Zombie) +
|
|
player.getOpponent().getNrOfPermanents(MagicSubType.Zombie);
|
|
final int graveyard =
|
|
game.filterCards(player,MagicTargetFilter.TARGET_ZOMBIE_CARD_FROM_GRAVEYARD).size() +
|
|
game.filterCards(player.getOpponent(),MagicTargetFilter.TARGET_ZOMBIE_CARD_FROM_GRAVEYARD).size();
|
|
final int amount = battlefield + graveyard;
|
|
pt.set(amount,amount);
|
|
}
|
|
}
|
|
]
|