Menu

Submission for Gutwrencher Oni

113

Config

name=Gutwrencher Oni
image=http://mtgimage.com/card/gutwrencher%20oni.jpg
value=2.500
rarity=U
type=Creature
subtype=Demon,Spirit
cost={3}{B}{B}
pt=5/4
ability=Trample
timing=main
requires_groovy_code
oracle=Trample. At the beginning of your upkeep, discard a card if you don't control an Ogre.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) && 
permanent.getController().controlsPermanent(MagicSubType.Ogre) == false ?
                new MagicEvent(
                    permanent,
                    this,
                    "If PN controls no Ogres, discard a card."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().controlsPermanent(MagicSubType.Ogre) == false) {
                game.addEvent(new MagicDiscardEvent(event.getSource(),event.getPlayer(),1));
            }
        }
    }
]
Pushed