From 8f86795b399eb77ed8ddfd5857ae6520b7075638 Mon Sep 17 00:00:00 2001 From: melvin Date: Sun, 17 Feb 2013 09:21:51 +0800 Subject: [PATCH] added Boros Reckoner --- .../Magarena/scripts/Boros_Reckoner.groovy | 30 +++++++++++++++++++ release/Magarena/scripts/Boros_Reckoner.txt | 12 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 release/Magarena/scripts/Boros_Reckoner.groovy create mode 100644 release/Magarena/scripts/Boros_Reckoner.txt diff --git a/release/Magarena/scripts/Boros_Reckoner.groovy b/release/Magarena/scripts/Boros_Reckoner.groovy new file mode 100644 index 0000000000..caf8550bf3 --- /dev/null +++ b/release/Magarena/scripts/Boros_Reckoner.groovy @@ -0,0 +1,30 @@ +[ + new MagicWhenDamageIsDealtTrigger() { + @Override + public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) { + final int amount = damage.getDealtAmount(); + return (damage.getTarget() == permanent) ? + new MagicEvent( + permanent, + MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER, + new MagicDamageTargetPicker(amount), + amount, + this, + "SN deals " + amount + " damage to target creature or player\$." + ): + MagicEvent.NONE; + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + event.processTarget(game,choiceResults,0,new MagicTargetAction() { + public void doAction(final MagicTarget target) { + final MagicDamage damage=new MagicDamage(event.getSource(),target,event.getRefInt(),false); + game.doAction(new MagicDealDamageAction(damage)); + } + }); + } + } +] diff --git a/release/Magarena/scripts/Boros_Reckoner.txt b/release/Magarena/scripts/Boros_Reckoner.txt new file mode 100644 index 0000000000..60b5a99ed7 --- /dev/null +++ b/release/Magarena/scripts/Boros_Reckoner.txt @@ -0,0 +1,12 @@ +name=Boros Reckoner +url=http://magiccards.info/gtc/en/215.html +image=http://magiccards.info/scans/en/gtc/215.jpg +value=3.937 +rarity=R +type=Creature +subtype=Minotaur,Wizard +cost={R/W}{R/W}{R/W} +pt=3/3 +ability=gains {R/W} first strike +timing=main +requires_groovy_code