Menu

Submission for Break Through the Line

94

Config

name=Break Through the Line
image=http://mtgimage.com/card/break%20through%20the%20line.jpg
value=2.500
rarity=U
type=Enchantment
cost={1}{R}
timing=enchantment
requires_groovy_code
oracle={R}: Target creature with power 2 or less gains haste until end of turn and can't be blocked this turn.

Script

def choice = MagicTargetChoice.Positive("target creature with power 2 or less");

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{R}")
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                choice,
                this,
                "Target creature\$ with power 2 or less gains haste until end of turn and can't be blocked this turn."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicGainAbilityAction(it,MagicAbility.Haste));
                game.doAction(new MagicGainAbilityAction(it, MagicAbility.Unblockable));
            });
        }
    }
]
Pushed