From 6aa4b045cbdb635228d3535d37a8aaa1172ed841 Mon Sep 17 00:00:00 2001 From: Jak Date: Sun, 17 Mar 2013 09:03:04 +0800 Subject: [PATCH] added Ant Queen --- release/Magarena/scripts/Ant_Queen.groovy | 28 +++++++++++++++++++++++ release/Magarena/scripts/Ant_Queen.txt | 11 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 release/Magarena/scripts/Ant_Queen.groovy create mode 100644 release/Magarena/scripts/Ant_Queen.txt diff --git a/release/Magarena/scripts/Ant_Queen.groovy b/release/Magarena/scripts/Ant_Queen.groovy new file mode 100644 index 0000000000..eda4b1f299 --- /dev/null +++ b/release/Magarena/scripts/Ant_Queen.groovy @@ -0,0 +1,28 @@ +[ + new MagicPermanentActivation( + [ + MagicConditionFactory.ManaCost("{1}{G}"), + ], + new MagicActivationHints(MagicTiming.Flash), + "Token") { + @Override + public MagicEvent[] getCostEvent(final MagicPermanent source) { + return [new MagicPayManaCostEvent(source, source.getController(), MagicManaCost.create("{1}{G}"))]; + } + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + this, + "Put a 1/1 green Insect creature token onto the battlefield." + ); + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + game.doAction(new MagicPlayTokenAction(event.getPlayer(), TokenCardDefinitions.get("Insect4"))); + } + } +] diff --git a/release/Magarena/scripts/Ant_Queen.txt b/release/Magarena/scripts/Ant_Queen.txt new file mode 100644 index 0000000000..2946119cc0 --- /dev/null +++ b/release/Magarena/scripts/Ant_Queen.txt @@ -0,0 +1,11 @@ +name=Ant Queen +url=http://magiccards.info/m10/en/166.html +image=http://magiccards.info/scans/en/m10/166.jpg +value=4.465 +rarity=R +type=Creature +subtype=Insect +cost={3}{G}{G} +pt=5/5 +timing=main +requires_groovy_code