From d948b2e52a5415f77a8578cccc762b388675f3c6 Mon Sep 17 00:00:00 2001 From: hong yie Date: Mon, 30 Dec 2013 06:10:23 +0000 Subject: [PATCH] Add script for Dawnstrider --- release/Magarena/scripts/Dawnstrider.groovy | 31 +++++++++++++++++++++ release/Magarena/scripts/Dawnstrider.txt | 10 +++++++ 2 files changed, 41 insertions(+) create mode 100644 release/Magarena/scripts/Dawnstrider.groovy create mode 100644 release/Magarena/scripts/Dawnstrider.txt diff --git a/release/Magarena/scripts/Dawnstrider.groovy b/release/Magarena/scripts/Dawnstrider.groovy new file mode 100644 index 0000000000..64b6b2b794 --- /dev/null +++ b/release/Magarena/scripts/Dawnstrider.groovy @@ -0,0 +1,31 @@ +[ + new MagicPermanentActivation( + new MagicActivationHints(MagicTiming.Prevent), + "Prevent" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicTapEvent(source), new MagicPayManaCostEvent(source, "{G}"), new MagicDiscardEvent(source, 1) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + this, + "Prevent all combat damage that would be dealt this turn." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + game.doAction(new MagicAddTurnTriggerAction( + MagicIfDamageWouldBeDealtTrigger.PreventCombatDamage + )); + } + } +] + diff --git a/release/Magarena/scripts/Dawnstrider.txt b/release/Magarena/scripts/Dawnstrider.txt new file mode 100644 index 0000000000..356cc96a2c --- /dev/null +++ b/release/Magarena/scripts/Dawnstrider.txt @@ -0,0 +1,10 @@ +name=Dawnstrider +url=http://magiccards.info/mm/en/237.html +image=http://magiccards.info/scans/en/mm/237.jpg +value=4.038 +rarity=R +type=Creature +subtype=Dryad,Spellshaper +cost={1}{G} +pt=1/1 +timing=main