Menu

Submission for Wild Dogs

284

Config

name=Wild Dogs
image=http://mtgimage.com/card/wild%20dogs.jpg
value=2.500
rarity=C
type=Creature
subtype=Hound
cost={G}
pt=2/1
ability=Cycling {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 Wild Dogs. Cycling {2}

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) && 
                   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