From 2d040969b346d1c0f712e01177752dcf4c12d13f Mon Sep 17 00:00:00 2001 From: melvin Date: Tue, 19 Feb 2013 21:41:31 +0800 Subject: [PATCH] added Druid's Deliverance --- .../scripts/Druid_s_Deliverance.groovy | 20 +++++++++++++++++++ .../Magarena/scripts/Druid_s_Deliverance.txt | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 release/Magarena/scripts/Druid_s_Deliverance.groovy create mode 100644 release/Magarena/scripts/Druid_s_Deliverance.txt diff --git a/release/Magarena/scripts/Druid_s_Deliverance.groovy b/release/Magarena/scripts/Druid_s_Deliverance.groovy new file mode 100644 index 0000000000..57623bf09c --- /dev/null +++ b/release/Magarena/scripts/Druid_s_Deliverance.groovy @@ -0,0 +1,20 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack, + this, + "Prevent all combat damage that would be dealt to you this turn. Populate." + ); + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + game.doAction(new MagicChangePlayerStateAction(event.getPlayer(),MagicPlayerState.PreventAllCombatDamage)); + game.addEvent(new MagicPopulateEvent(event.getSource())); + } + } +] diff --git a/release/Magarena/scripts/Druid_s_Deliverance.txt b/release/Magarena/scripts/Druid_s_Deliverance.txt new file mode 100644 index 0000000000..820daf29c9 --- /dev/null +++ b/release/Magarena/scripts/Druid_s_Deliverance.txt @@ -0,0 +1,9 @@ +name=Druid's Deliverance +url=http://magiccards.info/rtr/en/123.html +image=http://magiccards.info/scans/en/rtr/123.jpg +value=4.371 +rarity=C +type=Instant +cost={1}{G} +timing=pump +requires_groovy_code