Menu

Submission for Emperor Crocodile

165

Config

name=Emperor Crocodile
image=http://mtgimage.com/card/emperor%20crocodile.jpg
value=2.500
rarity=R
type=Creature
subtype=Crocodile
cost={3}{G}
pt=5/5
timing=main
requires_groovy_code
oracle=When you control no other creatures, sacrifice Emperor Crocodile.

Script

[
    new MagicStatic(MagicLayer.Game) {
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().getNrOfPermanents(MagicType.Creature) <= 1;
        }
        @Override
        public void modGame(final MagicPermanent source, final MagicGame game) {
            game.doAction(new MagicPutStateTriggerOnStackAction(
                MagicRuleEventAction.create(
                    source,
                    "Sacrifice SN."
                )
            ));
        }
    }
]
Pushed