Menu

Submission for Astral Slide

13

Config

name=Astral Slide
image=http://mtgimage.com/card/astral%20slide.jpg
value=2.500
rarity=U
type=Enchantment
cost={2}{W}
timing=enchantment
requires_groovy_code
oracle=Whenever a player cycles a card, you may exile target creature. If you do, return that card to the battlefield under its owner's control at the beginning of the next end step.

Script

[
    new MagicWhenOtherCycleTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCard card) {
            return new MagicEvent(
                permanent,
		new MagicMayChoice(
                MagicTargetChoice.TARGET_CREATURE
		),
                MagicExileTargetPicker.create(),
                this,
                "PN may\$ exile target creature\$. If you do, return that card to the " +
                "battlefield under its owner's control at the beginning of the next end step."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
	    if (event.isYes()) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicExileUntilEndOfTurnAction(it));
                });
	    }
        }
    }
]
Pushed