Menu

Submission for Flurry of Wings

127

Config

name=Flurry of Wings
image=http://mtgimage.com/card/flurry%20of%20wings.jpg
value=2.500
rarity=U
type=Instant
cost={G}{W}{U}
timing=token
requires_groovy_code
oracle=Put X 1/1 white Bird Soldier creature tokens with flying onto the battlefield, where X is the number of attacking creatures.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Put X 1/1 white Bird Soldier creature tokens with flying on the battlefield, where X is the number of attacking creatures."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
                final int X = event.getPlayer().getOpponent().getNrOfAttackers() + event.getPlayer().getNrOfAttackers();
                game.doAction(new MagicPlayTokensAction(
                    event.getPlayer(),
                    TokenCardDefinitions.get("1/1 white Bird Soldier creature token with flying"),
                    X
                ));
        }
    }
]
Pushed