Menu

Submission for

Config

name=Cosmic Horror
image=http://mtgimage.com/card/cosmic%20horror.jpg
value=2.500
rarity=R
type=Creature
subtype=Horror
cost={3}{B}{B}{B}
pt=7/7
ability=First strike
timing=main
requires_groovy_code
oracle=First strike. At the beginning of your upkeep, destroy Cosmic Horror unless you pay {3}{B}{B}{B}. If Cosmic Horror is destroyed this way, it deals 7 damage to you.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(
                        "Pay {3}{B}{B}{B}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{3}{B}{B}{B}"))
                    ),
                    this,
                    "PN may\$ pay {3}{B}{B}{B}\$. If PN doesn't, SN is destroyed and deals 7 damage to PN."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
			game.doAction(new MagicDestroyAction(event.getPermanent()));
                final MagicDamage damage = new MagicDamage(event.getSource(),event.getPlayer(),7)
                game.doAction(new MagicDealDamageAction(damage));
            }
        }
    }
]
Pushed