Menu

Submission for Seizures

47

Config

name=Seizures
image=http://mtgimage.com/card/seizures.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={1}{B}
timing=aura
enchant=can't attack,neg creature
requires_groovy_code
oracle=Enchant creature. Whenever enchanted creature becomes tapped, Seizures deals 3 damage to that creature's controller unless that player pays {3}.

Script

[
    new MagicWhenBecomesTappedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent tapped) {
            final MagicPermanent enchanted = permanent.getEnchantedPermanent();
            return enchanted==tapped ?
                new MagicEvent(
                    permanent,
                    tapped.getController(),
                    new MagicMayChoice(
                        "Pay {3}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{3}"))
                    ),
                    this,
                    "PN may\$ pay {3}\$. If PN doesn't, SN deals 3 damage to him or her."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game,final MagicEvent event) {
            if (event.isNo()) {
                game.doAction(new MagicDealDamageAction(event.getSource(),event.getPlayer(),3));
            }
        }
    }
]
Pushed