Menu

Submission for Bringer of the Red Dawn

62

Config

name=Bringer of the Red Dawn
url=http://magiccards.info/query?q=%21bringer%20of%20the%20red%20dawn
image=http://mtgimage.com/card/bringer%20of%20the%20red%20dawn.jpg
value=4.196
rarity=R
type=Creature
subtype=Bringer
cost={7}{R}{R}
pt=5/5
ability=alt cost {W}{U}{B}{R}{G} named Alt;\
        trample
timing=main
requires_groovy_code

Script

    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(MagicTargetChoice.TARGET_CREATURE),
                    MagicExileTargetPicker.create(),
                    this,
                    "Gain control of target creature\$ until end of turn. Untap it. " +
                    "It gains haste until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetPermanent(game, {
                    final MagicPermanent permanent ->
                    game.doAction(new MagicGainControlAction(event.getPlayer(),permanent,MagicStatic.UntilEOT));
                    game.doAction(new MagicUntapAction(permanent));
                    game.doAction(new MagicGainAbilityAction(permanent,MagicAbility.Haste));
                });
            }
        }
    }
]
Pushed