Menu

Submission for War Flare

158

Config

name=War Flare
image=http://mtgimage.com/card/war%20flare.jpg
value=2.500
rarity=C
type=Instant
cost={2}{R}{W}
timing=pump
requires_groovy_code
oracle=Creatures you control get +2/+1 until end of turn. Untap those creatures.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Creatures you control get +2/+1 until end of turn. Untap those creatures."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final Collection<MagicPermanent> targets = game.filterPermanents(
                event.getPlayer(),
                MagicTargetFilterFactory.CREATURE_YOU_CONTROL
            );
            for (final MagicPermanent target : targets) {
                game.doAction(new MagicChangeTurnPTAction(target,2,1));
                game.doAction(new MagicUntapAction(target));
            }
        }
    }
]
Pushed