Menu

Submission for Kezzerdrix

124

Config

name=Kezzerdrix
image=http://mtgimage.com/card/kezzerdrix.jpg
value=2.500
rarity=R
type=Creature
subtype=Rabbit,Beast
cost={2}{B}{B}
pt=4/4
ability=First strike
timing=main
requires_groovy_code
oracle=First strike. At the beginning of your upkeep, if your opponents control no creatures, Kezzerdrix deals 4 damage to you.

Script

[
    new MagicAtYourUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return upkeepPlayer.getOpponent().controlsPermanent(MagicType.Creature) == false ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN deals 4 damage to PN."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().getOpponent().controlsPermanent(MagicType.Creature) == false) {
                game.doAction(new MagicDealDamageAction(event.getSource(),event.getPlayer(),4));
            }
        }
    }
]
Pushed