Menu

Submission for Cabal Executioner

130

Config

name=Cabal Executioner
image=http://mtgimage.com/card/cabal%20executioner.jpg
value=2.500
rarity=U
type=Creature
subtype=Human,Cleric
cost={2}{B}{B}
pt=2/2
ability=Morph {3}{B}{B}
timing=main
requires_groovy_code
oracle=Whenever Cabal Executioner deals combat damage to a player, that player sacrifices a creature. Morph {3}{B}{B}

Script

[
    new MagicWhenSelfCombatDamagePlayerTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return new MagicEvent(
                permanent,
                damage.getTargetPlayer(),
                this,
                "PN sacrifices a creature."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(new MagicSacrificePermanentEvent(event.getSource(),event.getPlayer(),MagicTargetChoice.CREATURE_YOU_CONTROL));
        }
    }
]
Pushed