Menu

Submission for Cyclopean Mummy

72

Config

name=Cyclopean Mummy
image=http://mtgimage.com/card/cyclopean%20mummy.jpg
value=2.500
rarity=C
type=Creature
subtype=Zombie
cost={1}{B}
pt=2/1
timing=main
requires_groovy_code
oracle=When Cyclopean Mummy dies, exile it.

Script

[
    new MagicWhenDiesTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPermanent died) {
            return new MagicEvent(
                permanent,
                this,
                "Exile SN."
            );
        }

       @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicCard card = event.getPermanent().getCard();
 
            if (card.isInGraveyard()) {
                game.doAction(new MagicRemoveCardAction(card,MagicLocationType.Graveyard));
                game.doAction(new MagicMoveCardAction(card,MagicLocationType.Graveyard,MagicLocationType.Exile));
            }    
        }
    }
]
Pushed