From f78ad92792e0b08e0bb9426fe2ef51140d2c7c0b Mon Sep 17 00:00:00 2001 From: ember hauler Date: Tue, 15 Oct 2013 18:40:12 +0000 Subject: [PATCH] Add script for Liliana's Reaver --- .../Magarena/scripts/Liliana_s_Reaver.groovy | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 release/Magarena/scripts/Liliana_s_Reaver.groovy diff --git a/release/Magarena/scripts/Liliana_s_Reaver.groovy b/release/Magarena/scripts/Liliana_s_Reaver.groovy new file mode 100644 index 0000000000..179dc9c2da --- /dev/null +++ b/release/Magarena/scripts/Liliana_s_Reaver.groovy @@ -0,0 +1,26 @@ +[ + new MagicWhenDamageIsDealtTrigger() { + @Override + public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) { + return (damage.getSource() == permanent && + damage.isCombat() && + damage.getTarget().isPlayer()) ? + new MagicEvent( + permanent, + this, + "PN puts a 2/2 black Zombie creature token onto the battlefield." + ): + MagicEvent.NONE; + } + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + game.doAction(new MagicPlayCardAction( + MagicCard.createTokenCard( + TokenCardDefinitions.get("Zombie"), + event.getPlayer() + ), + [MagicPlayMod.TAPPED] + )); + } + } +]