Menu

Submission for Slow Motion

42

Config

name=Slow Motion
image=http://mtgimage.com/card/slow%20motion.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={2}{U}
ability=When SN is put into a graveyard from the battlefield, return SN to its owner's hand.
timing=aura
enchant=destroy,neg creature
requires_groovy_code
oracle=Enchant creature. At the beginning of the upkeep of enchanted creature's controller, that player sacrifices that creature unless he or she pays {2}. When Slow Motion is put into a graveyard from the battlefield, return Slow Motion to its owner's hand.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPlayer upkeepPlayer) {
            final MagicPermanent enchanted = permanent.getEnchantedPermanent();
            return enchanted.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    upkeepPlayer,
                    new MagicMayChoice(
                        "Pay {2}?",
                        new MagicPayManaCostChoice(MagicManaCost.create("{2}"))
                    ),
                    enchanted,
                    this,
                    "PN may\$ pay {2}\$. If PN doesn't, sacrifice RN."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isNo()) {
                game.doAction(new MagicSacrificeAction(event.getRefPermanent()));
            }
        }
    }
]
Pushed