Menu

Submission for Jeskai Barricade

15

Config

name=Jeskai Barricade
image=http://mtgimage.com/card/jeskai%20barricade.jpg
value=2.500
rarity=U
type=Creature
subtype=Wall
cost={1}{W}
pt=0/4
ability=Flash;\
Defender
timing=main
requires_groovy_code
oracle=Flash. Defender. When Jeskai Barricade enters the battlefield, you may return another target creature you control to its owner's hand.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice(MagicTargetChoice.PosOther("target creature you control", permanent)),
                this,
                "PN may\$ return another target creature\$ you control to its owner's hand."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetPermanent(game, {
                    game.doAction(new MagicRemoveFromPlayAction(it,MagicLocationType.OwnersHand));
                });
            }
        }
    }
]
Pushed