From 06d2b43c030f8d466778c8943d3bbbd5e6945d4b Mon Sep 17 00:00:00 2001 From: melvin Date: Tue, 19 Feb 2013 21:41:44 +0800 Subject: [PATCH] added Growing Ranks --- release/Magarena/scripts/Growing_Ranks.groovy | 21 +++++++++++++++++++ release/Magarena/scripts/Growing_Ranks.txt | 9 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 release/Magarena/scripts/Growing_Ranks.groovy create mode 100644 release/Magarena/scripts/Growing_Ranks.txt diff --git a/release/Magarena/scripts/Growing_Ranks.groovy b/release/Magarena/scripts/Growing_Ranks.groovy new file mode 100644 index 0000000000..3a087f41a7 --- /dev/null +++ b/release/Magarena/scripts/Growing_Ranks.groovy @@ -0,0 +1,21 @@ +[ + new MagicAtUpkeepTrigger() { + @Override + public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) { + return permanent.isController(upkeepPlayer) ? + new MagicEvent( + permanent, + this, + "Populate." + ): + MagicEvent.NONE; + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + game.addEvent(new MagicPopulateEvent(event.getSource())); + } + } +] diff --git a/release/Magarena/scripts/Growing_Ranks.txt b/release/Magarena/scripts/Growing_Ranks.txt new file mode 100644 index 0000000000..967b00cadd --- /dev/null +++ b/release/Magarena/scripts/Growing_Ranks.txt @@ -0,0 +1,9 @@ +name=Growing Ranks +url=http://magiccards.info/rtr/en/217.html +image=http://magiccards.info/scans/en/rtr/217.jpg +value=4.371 +rarity=R +type=Enchantment +cost={2}{G/W}{G/W} +timing=main +requires_groovy_code