Menu

Submission for Stenchskipper

79

Config

name=Stenchskipper
image=http://mtgimage.com/card/stenchskipper.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={3}{B}
pt=6/5
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. At the beginning of the end step, if you control no Goblins, sacrifice Stenchskipper.

Script

[
    new MagicAtEndOfTurnTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) && game.getNrOfPermanents(MagicSubType.Goblin) == 0 ?
                new MagicEvent(
                    permanent,
                    this,
                    "Sacrifice SN."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicSacrificeAction(event.getPermanent()));
        }
    }
]
Pushed