From 51418fc1abac39bf21ee24f966ba7e584f253c9a Mon Sep 17 00:00:00 2001 From: Jericho Pumpkin Date: Sat, 21 Sep 2013 20:07:06 +0000 Subject: [PATCH] Add script for Mnemonic Sliver --- .../Magarena/scripts/Mnemonic_Sliver.groovy | 41 +++++++++++++++++++ release/Magarena/scripts/Mnemonic_Sliver.txt | 12 ++++++ 2 files changed, 53 insertions(+) create mode 100644 release/Magarena/scripts/Mnemonic_Sliver.groovy create mode 100644 release/Magarena/scripts/Mnemonic_Sliver.txt diff --git a/release/Magarena/scripts/Mnemonic_Sliver.groovy b/release/Magarena/scripts/Mnemonic_Sliver.groovy new file mode 100644 index 0000000000..21a820ea53 --- /dev/null +++ b/release/Magarena/scripts/Mnemonic_Sliver.groovy @@ -0,0 +1,41 @@ + +def MnemonicSacrifice = new MagicPermanentActivation( + [MagicCondition.SORCERY_CONDITION], + new MagicActivationHints(MagicTiming.Main), + "Mnemonic" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicPayManaCostEvent(source,"{2}"), + new MagicSacrificeEvent(source) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + this, + "PN draws a card." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + game.doAction(new MagicDrawAction(event.getPlayer(),1)); + } + }; + +[ + new MagicStatic( + MagicLayer.Ability, + MagicTargetFilter.TARGET_SLIVER + ) { + @Override + public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set flags) { + permanent.addAbility(MnemonicSacrifice); + } + } +] diff --git a/release/Magarena/scripts/Mnemonic_Sliver.txt b/release/Magarena/scripts/Mnemonic_Sliver.txt new file mode 100644 index 0000000000..5963326aad --- /dev/null +++ b/release/Magarena/scripts/Mnemonic_Sliver.txt @@ -0,0 +1,12 @@ +name=Mnemonic Sliver +url=http://magiccards.info/tp/en/77.html +image=http://magiccards.info/scans/en/tp/77.jpg +value=3.214 +rarity=U +type=Creature +subtype=Sliver +cost={2}{U} +pt=2/2 +static=all +timing=main +requires_groovy_code