Menu

Submission for Hecatomb

71

Config

name=Hecatomb
image=http://mtgimage.com/card/hecatomb.jpg
value=2.500
rarity=R
type=Enchantment
cost={1}{B}{B}
ability=Tap an untapped Swamp you control: SN deals 1 damage to target creature or player.
timing=main
requires_groovy_code
oracle=When Hecatomb enters the battlefield, sacrifice Hecatomb unless you sacrifice four creatures. Tap an untapped Swamp you control: Hecatomb deals 1 damage to target creature or player.

Script

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