Menu

Submission for Primal Bellow

176

Config

name=Primal Bellow
image=http://mtgimage.com/card/primal%20bellow.jpg
value=2.500
rarity=U
type=Instant
cost={G}
timing=pump
requires_groovy_code
oracle=Target creature gets +1/+1 until end of turn for each Forest you control.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE,
                MagicPumpTargetPicker.create(),
                this,
                "Target creature\$ gets +1/+1 until end of turn for each Forest you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int amount = event.getPlayer().getNrOfPermanents(MagicSubType.Forest);
                game.doAction(new MagicChangeTurnPTAction(it, +amount, +amount));
            });
        }
    }
]
Pushed