diff --git a/release/Magarena/scripts/Rootborn_Defenses.groovy b/release/Magarena/scripts/Rootborn_Defenses.groovy new file mode 100644 index 0000000000..9198ec533f --- /dev/null +++ b/release/Magarena/scripts/Rootborn_Defenses.groovy @@ -0,0 +1,31 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack, + this, + "Populate. Creatures you control are indestructible this turn." + ); + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + game.addEvent(new MagicPopulateEvent(event.getSource())); + game.doAction(new MagicAddStaticAction(new MagicStatic( + MagicLayer.Ability, + MagicTargetFilter.TARGET_CREATURE_YOU_CONTROL, + MagicStatic.UntilEOT) { + @Override + public void modAbilityFlags( + final MagicPermanent source, + final MagicPermanent permanent, + final Set flags) { + flags.add(MagicAbility.Indestructible); + } + })); + } + } +] diff --git a/release/Magarena/scripts/Rootborn_Defenses.txt b/release/Magarena/scripts/Rootborn_Defenses.txt new file mode 100644 index 0000000000..0b14d80a83 --- /dev/null +++ b/release/Magarena/scripts/Rootborn_Defenses.txt @@ -0,0 +1,9 @@ +name=Rootborn Defenses +url=http://magiccards.info/rtr/en/19.html +image=http://magiccards.info/scans/en/rtr/19.jpg +value=4.371 +rarity=C +type=Instant +cost={2}{W} +timing=pump +requires_groovy_code