Menu

Submission for Necroskitter

38

Config

name=Necroskitter
image=http://mtgimage.com/card/necroskitter.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={1}{B}{B}
pt=1/4
ability=Wither
timing=main
requires_groovy_code
oracle=Wither. Whenever a creature an opponent controls with a -1/-1 counter on it dies, you may return that card to the battlefield under your control.

Script

[
   new MagicWhenOtherDiesTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
            return (otherPermanent.isEnemy(permanent) &&
                    otherPermanent.isCreature() &&
                    otherPermanent.getCounters(MagicCounterType.MinusOne) > 0) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(),
                    otherPermanent.getCard(),
                    this,
                    "You may\$ return RN to the battlefield under your control."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicReanimateAction(event.getRefCard(), event.getPlayer()));
            }
        }
    }
]
Pushed