Menu

Submission for Scion of Vitu-Ghazi

7

Config

name=Scion of Vitu-Ghazi
image=http://magiccards.info/scans/en/dgm/7.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={3}{W}{W}
pt=4/4
timing=main
requires_groovy_code
oracle=When Scion of Vitu-Ghazi enters the battlefield, if you cast it from your hand, put a 1/1 white Bird creature token with flying onto the battlefield, then populate.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return permanent.hasState(MagicPermanentState.CastFromHand) ? 
                new MagicEvent(
                    permanent,
                    this,
                    "Put a 1/1 white Bird creature token with flying onto the battlefield, then populate."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicPlayTokenAction(
                event.getPlayer(),
                TokenCardDefinitions.get("1/1 white and blue Bird creature token with flying")
            ));
            game.addEvent(new MagicPopulateEvent(event.getSource()));
        }
    }
]
Pushed