Menu

Submission for Chorus of Might

119

Config

name=Chorus of Might
image=http://mtgimage.com/card/chorus%20of%20might.jpg
value=2.500
rarity=C
type=Instant
cost={3}{G}
timing=pump
requires_groovy_code
oracle=Until end of turn, target creature gets +1/+1 for each creature you control and gains trample.

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 creature you control and gains trample."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int amount = event.getPlayer().getNrOfPermanents(MagicType.Creature);
                game.doAction(new MagicChangeTurnPTAction(it, amount, amount));
		game.doAction(new MagicGainAbilityAction(it,MagicAbility.Trample));      
            });
        }
    }
]
Pushed