Menu

Submission for Dawn of the Dead

59

Config

name=Dawn of the Dead
image=http://mtgimage.com/card/dawn%20of%20the%20dead.jpg
value=2.500
rarity=R
type=Enchantment
cost={2}{B}{B}{B}
ability=At the beginning of your upkeep, you lose 1 life.
timing=enchantment
requires_groovy_code
oracle=At the beginning of your upkeep, you lose 1 life. At the beginning of your upkeep, you may return target creature card from your graveyard to the battlefield. That creature gains haste until end of turn. Exile it at the beginning of the next end step.

Script

[
    new MagicAtYourUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice(MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD),
                MagicGraveyardTargetPicker.PutOntoBattlefield,
                this,
                "Return target creature card from your graveyard\$ to the battlefield. "+
                "That creature gains haste. Exile it at the beginning of the next end step."
            );
        }
        
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetCard(game, {
                    game.doAction(new MagicReanimateAction(
                        it,
                        event.getPlayer(),
                        [MagicPlayMod.HASTE, MagicPlayMod.EXILE_AT_END_OF_TURN]
                    ));
                });
            }
        }
    }
]
Pushed