From c727c86457c58102e213506aaf7c352592cadf5b Mon Sep 17 00:00:00 2001 From: hong yie Date: Wed, 15 Jan 2014 01:16:13 +0000 Subject: [PATCH] Add script for Notorious Assassin --- .../scripts/Notorious_Assassin.groovy | 33 +++++++++++++++++++ .../Magarena/scripts/Notorious_Assassin.txt | 10 ++++++ 2 files changed, 43 insertions(+) create mode 100644 release/Magarena/scripts/Notorious_Assassin.groovy create mode 100644 release/Magarena/scripts/Notorious_Assassin.txt diff --git a/release/Magarena/scripts/Notorious_Assassin.groovy b/release/Magarena/scripts/Notorious_Assassin.groovy new file mode 100644 index 0000000000..e08ac7089f --- /dev/null +++ b/release/Magarena/scripts/Notorious_Assassin.groovy @@ -0,0 +1,33 @@ +[ + new MagicPermanentActivation( + new MagicActivationHints(MagicTiming.Removal), + "Destroy" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicTapEvent(source), new MagicPayManaCostEvent(source, "{2}{B}"), new MagicDiscardEvent(source, 1) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + this, + "Destroy target nonblack creature. It can't be regenerated." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTargetPermanent(game, { + final MagicPermanent creature -> + game.doAction(MagicChangeStateAction.Set(creature,MagicPermanentState.CannotBeRegenerated)); + game.doAction(new MagicDestroyAction(creature)); + }); + } + } +] + diff --git a/release/Magarena/scripts/Notorious_Assassin.txt b/release/Magarena/scripts/Notorious_Assassin.txt new file mode 100644 index 0000000000..b6b6a6a4fc --- /dev/null +++ b/release/Magarena/scripts/Notorious_Assassin.txt @@ -0,0 +1,10 @@ +name=Notorious Assassin +url=http://magiccards.info/mm/en/150.html +image=http://magiccards.info/scans/en/mm/150.jpg +value=3.153 +rarity=R +type=Creature +subtype=Human,Assassin,Spellshaper +cost={3}{B} +pt=2/2 +timing=main