Menu

Submission for Keeper of Tresserhorn

14

Config

name=Keeper of Tresserhorn
image=http://mtgimage.com/card/keeper%20of%20tresserhorn.jpg
value=2.500
rarity=R
type=Creature
subtype=Avatar
cost={5}{B}
pt=6/6
timing=main
requires_groovy_code
oracle=Whenever Keeper of Tresserhorn attacks and isn't blocked, it assigns no combat damage this turn and defending player loses 2 life.

Script

[
    new MagicWhenAttacksUnblockedTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (creature == permanent) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN assigns no combat damage this turn. Defending player loses 2 life."
                ) :
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
                    final MagicPermanent permanent = event.getPermanent();
                    game.doAction(new MagicChangeLifeAction(event.getPlayer().getOpponent(),-2));
                    game.doAction(MagicChangeStateAction.Set(
                        permanent,
                        MagicPermanentState.NoCombatDamage
                    ));
            }
        }
]
Pushed