diff --git a/release/Magarena/scripts/Necrotic_Sliver.groovy b/release/Magarena/scripts/Necrotic_Sliver.groovy new file mode 100644 index 0000000000..c7aae7b147 --- /dev/null +++ b/release/Magarena/scripts/Necrotic_Sliver.groovy @@ -0,0 +1,46 @@ + +def NecroticSacrifice = new MagicPermanentActivation( + new MagicActivationHints(MagicTiming.Removal), + "Necrotic" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicPayManaCostEvent(source,"{3}"), + new MagicSacrificeEvent(source) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + MagicTargetChoice.NEG_TARGET_PERMANENT, + new MagicDestroyTargetPicker(false), + this, + "Destroy target permanent\$." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTargetPermanent(game,new MagicPermanentAction() { + public void doAction(final MagicPermanent permanent) { + game.doAction(new MagicDestroyAction(permanent)); + } + }); + } + }; + +[ + new MagicStatic( + MagicLayer.Ability, + MagicTargetFilter.TARGET_SLIVER + ) { + @Override + public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set flags) { + permanent.addAbility(NecroticSacrifice); + } + } +] diff --git a/release/Magarena/scripts/Necrotic_Sliver.txt b/release/Magarena/scripts/Necrotic_Sliver.txt new file mode 100644 index 0000000000..3b90897920 --- /dev/null +++ b/release/Magarena/scripts/Necrotic_Sliver.txt @@ -0,0 +1,12 @@ +name=Necrotic Sliver +url=http://magiccards.info/pds/en/20.html +image=http://magiccards.info/scans/en/pds/20.jpg +value=4.483 +rarity=U +type=Creature +subtype=Sliver +cost={1}{B}{W} +pt=2/2 +static=all +timing=main +requires_groovy_code