Menu

Submission for Mindstab Thrull

76

Config

name=Mindstab Thrull
image=http://mtgimage.com/card/mindstab%20thrull.jpg
value=2.500
rarity=C
type=Creature
subtype=Thrull
cost={1}{B}{B}
pt=2/2
timing=main
requires_groovy_code
oracle=Whenever Mindstab Thrull attacks and isn't blocked, you may sacrifice it. If you do, defending player discards three cards.

Script

[
    new MagicWhenAttacksUnblockedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (creature == permanent) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(),
	            this,
                    "PN may\$ sacrifice SN. " +
                    "If you do, defending player discards 3 cards."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
                game.addEvent(new MagicDiscardEvent(
                event.getPermanent(),
                event.getPermanent().getOpponent(),
		3
            ));
            }
        }
    }
]
Pushed