Menu

Submission for Hidden Horror

2

Config

name=Hidden Horror
image=http://mtgimage.com/card/hidden%20horror.jpg
value=2.500
rarity=U
type=Creature
subtype=Horror
cost={1}{B}{B}
pt=4/4
timing=main
requires_groovy_code
oracle=When Hidden Horror enters the battlefield, sacrifice it unless you discard a creature card.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice("Discard a creature card?"),
                this,
                "PN may\$ discard a creature card. If PN doesn't, sacrifice SN."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicEvent discard = new MagicDiscardChosenEvent(event.getSource(), MagicTargetChoice.CREATURE_CARD_FROM_HAND);
            if (event.isYes() && discard.isSatisfied()) {
                game.addEvent(discard);
            } else {
                game.doAction(new MagicSacrificeAction(event.getPermanent()));
            }
        }
    }
]
Pushed