Menu

Submission for Desecration Demon

63

Comment

FINALLY! forgot the 'requires_groovy_code' in the .txt and couldn't figure out why none of my groovy changes worked :/

Config

name=Desecration Demon
url=http://magiccards.info/rtr/en/63.html
image=http://mtgimage.com/card/Desecration%20Demon.jpg
value=4.291
rarity=M
type=Legendary,Creature
subtype=Demon
cost={2}{B}{B}
pt=6/6
timing=main
ability=flying
requires_groovy_code

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer upkeepPlayer) {
            return permanent.isController(upkeepPlayer) ?
                new MagicEvent(
                        permanent,
                        upkeepPlayer.opponent, //should be player.opponent
                        new MagicMayChoice(MagicTargetChoice.SACRIFICE_CREATURE),
                        MagicSacrificeTargetPicker.create(),
                        this,
                        "You may sacrifice a creature. If you do, tap SN and put a +1/+1 counter on it."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPermanent perm = event.getPermanent();
            if(event.isYes()){
                game.addEvent(new MagicSacrificePermanentEvent(perm, event.getPlayer(),MagicTargetChoice.SACRIFICE_CREATURE));
                game.doAction(new MagicTapAction(perm, true)); //tap
                game.doAction(new MagicChangeCountersAction(perm, MagicCounterType.PlusOne, 1, true));
            }
        }
    }
]
Pushed