Menu

Submission for Scourge of Numai

80

Comment

With help from ShawnieTheMan.

Config

name=Scourge of Numai
image=http://mtgimage.com/card/scourge%20of%20numai.jpg
value=2.500
rarity=U
type=Creature
subtype=Demon,Spirit
cost={3}{B}
pt=4/4
timing=main
requires_groovy_code
oracle=At the beginning of your upkeep, you lose 2 life 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, lose 2 life."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().controlsPermanent(MagicSubType.Ogre) == false) {
                game.doAction(new MagicChangeLifeAction(event.getPlayer(),-2));
            }
        }
    }
]
Pushed