Menu

Submission for Ghazbán Ogre

120

Config

name=Ghazbán Ogre
image=http://mtgimage.com/card/ghazban%20ogre.jpg
value=2.500
rarity=C
type=Creature
subtype=Ogre
cost={G}
pt=2/2
timing=main
requires_groovy_code
oracle=At the beginning of your upkeep, if a player has more life than each other player, the player with the most life gains control of Ghazbán Ogre.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.getOpponent().getLife() > 
                   permanent.getController().getLife() ?
                new MagicEvent(
                    permanent,
                    this,
                    "The player with the most life gains control of SN."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPermanent().getOpponent().getLife() > 
                event.getPermanent().getController().getLife()) {
                game.doAction(new MagicGainControlAction(event.getPermanent().getOpponent(),event.getPermanent()));
            }
        }
    }
]
Pushed