Menu

Submission for Marchesa's Smuggler

50

Config

name=Marchesa's Smuggler
image=http://mtgimage.com/card/marchesa%27s%20smuggler.jpg
value=3.857
rarity=U
type=Creature
subtype=Human,Rogue
cost={U}{R}
pt=1/1
ability=Dethrone
timing=main
requires_groovy_code
oracle=Dethrone. {1}{U}{R}: Target creature you control gains haste until end of turn and can't be blocked this turn.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.FirstMain),
        "Haste"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicPayManaCostEvent(source,"{1}{U}{R}")];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
                MagicUnblockableTargetPicker.create(),
                this,
                "Target creature\$ gains haste and is unblockable this turn."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final MagicPermanent creature ->
                game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Unblockable));
                game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Haste));
            });
        }
    }
]
Pushed