Menu

Submission for Wirewood Pride

303

Config

name=Wirewood Pride
image=http://mtgimage.com/card/wirewood%20pride.jpg
value=2.500
rarity=C
type=Instant
cost={G}
timing=pump
requires_groovy_code
oracle=Target creature gets +X/+X until end of turn, where X is the number of Elves on the battlefield.

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 +X/+X until end of turn, where X is the number of Elves on the battlefield."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
		event.processTargetPermanent(game, {
		final int amount =game.getNrOfPermanents(MagicSubType.Elf);
            game.doAction(new MagicChangeTurnPTAction(it,+amount,+amount));
	});
        }
    }
]
Pushed