Menu

Submission for Smelt-Ward Gatekeepers

39

Config

name=Smelt-Ward Gatekeepers
image=http://mtgimage.com/card/smelt-ward%20gatekeepers.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Warrior
cost={3}{R}
pt=2/4
timing=main
requires_groovy_code
oracle=When Smelt-Ward Gatekeepers enters the battlefield, if you control two or more Gates, gain control of target creature an opponent controls until end of turn. Untap that creature. It gains haste until end of turn.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return permanent.getController().getNrOfPermanents(MagicSubType.Gate) >= 2 ?
                new MagicEvent(
                permanent,
                MagicTargetChoice.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS,
                MagicExileTargetPicker.create(),
                this,
                "PN gains control of target creature an opponent controls\$ until end of turn. Untap that creature. " +
                "It gains haste until end of turn."
            ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicGainControlAction(event.getPlayer(),it,MagicStatic.UntilEOT));
                game.doAction(new MagicUntapAction(it));
                game.doAction(new MagicGainAbilityAction(it,MagicAbility.Haste));
            });
        }
    }
]
Pushed