diff --git a/release/Magarena/scripts/Soulless_One.groovy b/release/Magarena/scripts/Soulless_One.groovy new file mode 100644 index 0000000000..6986712f1f --- /dev/null +++ b/release/Magarena/scripts/Soulless_One.groovy @@ -0,0 +1,15 @@ +[ + new MagicCDA() { + @Override + public void modPowerToughness(final MagicGame game,final MagicPlayer player,final MagicPowerToughness pt) { + final int battlefield = + player.getNrOfPermanentsWithSubType(MagicSubType.Zombie) + + player.getOpponent().getNrOfPermanentsWithSubType(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); + } + } +] diff --git a/release/Magarena/incomplete/Soulless_One.txt b/release/Magarena/scripts/Soulless_One.txt similarity index 90% rename from release/Magarena/incomplete/Soulless_One.txt rename to release/Magarena/scripts/Soulless_One.txt index f4971dbad0..0366edd831 100644 --- a/release/Magarena/incomplete/Soulless_One.txt +++ b/release/Magarena/scripts/Soulless_One.txt @@ -7,4 +7,4 @@ type=Creature subtype=Zombie,Avatar cost={3}{B} timing=main -requires_card_code +requires_groovy_code