Menu

Submission for Mold Demon

26

Comment

Based on Plant Elemental. Universally acclaimed as the most beautiful card art in the history of Magic: the Gathering.

Config

name=Mold Demon
image=http://mtgimage.com/card/mold%20demon.jpg
value=2.500
rarity=R
type=Creature
subtype=Fungus,Demon
cost={5}{B}{B}
pt=6/6
timing=main
requires_groovy_code
oracle=When Mold Demon enters the battlefield, sacrifice it unless you sacrifice two Swamps.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice("Sacrifice two Swamps?"),
                this,
                "PN may\$ sacrifice two Swamps. If you don't, sacrifice SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPermanent perm = event.getPermanent();
            if (event.getPlayer().getNrOfPermanents(MagicSubType.Swamp) >=2 && event.isYes()) {
                game.addEvent(new MagicSacrificePermanentEvent(perm,event.getPlayer(),new MagicTargetChoice("a swamp to sacrifice")));
			game.addEvent(new MagicSacrificePermanentEvent(perm,event.getPlayer(),new MagicTargetChoice("a swamp to sacrifice")));
            } else {
                game.doAction(new MagicSacrificeAction(perm));
            }
        }
    }
]
Pushed