Menu

Submission for

Comment

Adapted from Thalakos Deceiver

Config

name=Necrite
image=http://mtgimage.com/card/necrite.jpg
value=2.500
rarity=C
type=Creature
subtype=Thrull
cost={1}{B}{B}
pt=2/2
timing=main
requires_groovy_code
oracle=Whenever Necrite attacks and isn't blocked, you may sacrifice it. If you do, destroy target creature defending player controls. It can't be regenerated.

Script

[
    new MagicWhenAttacksUnblockedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (creature == permanent) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(MagicTargetChoice.NEG_TARGET_CREATURE),
                    MagicDestroyTargetPicker.DestroyNoRegen,
                    this,
                    "PN may\$ sacrifice SN. " +
                    "If you do, destroy target creature. It can't be regenerated\$."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
                event.processTargetPermanent(game, {
                    game.doAction(MagicChangeStateAction.Set(it,MagicPermanentState.CannotBeRegenerated));
                game.doAction(new MagicDestroyAction(it));
                });
            }
        }
    }
]
Pushed