Menu

Submission for Flickerwisp

71

Config

name=Flickerwisp
image=http://mtgimage.com/card/flickerwisp.jpg
value=2.500
rarity=U
type=Creature
subtype=Elemental
cost={1}{W}{W}
pt=3/1
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. When Flickerwisp enters the battlefield, exile another target permanent. Return that card to the battlefield under its owner's control at the beginning of the next end step.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
         public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
	    final MagicTargetChoice targetChoice = new MagicTargetChoice(
                new MagicOtherPermanentTargetFilter(
                    MagicTargetFilterFactory.PERMANENT,
                    permanent
                ),
                MagicTargetHint.Negative,
                "another target permanent"
            );            
	     return new MagicEvent(
                permanent,
                targetChoice,
                MagicExileTargetPicker.create(),
                this,
                "Exile another target permanent\$. 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) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicExileUntilEndOfTurnAction(it));
            });
        }
    }
]
Pushed