Menu

Submission for Explosive Growth

187

Config

name=Explosive Growth
image=http://mtgimage.com/card/explosive%20growth.jpg
value=2.500
rarity=C
type=Instant
cost={G}
ability=Kicker {5}
timing=pump
requires_groovy_code
oracle=Kicker {5}. Target creature gets +2/+2 until end of turn. If Explosive Growth was kicked, that creature gets +5/+5 until end of turn instead.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE,
                this,
                "Target creature\$ gets +2/+2 until end of turn. " +
                "If SN was kicked, that creature gets +5/+5 instead."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                int amount = event.isKicked() ? 5 : 2;
                game.doAction(new MagicChangeTurnPTAction(it, amount, amount));
            });
        }
    }
]
Pushed