Menu

Submission for Kalitas, Traitor of Ghet

86

Comment

works, tested. If you have both a zombie and a vampire to sac you get two buttons. left is vampre right zombie but had no idea if it was possible to label them somehow. First script from me so yell if I did something wrong.

Config

name=Kalitas, Traitor of Ghet
image=http://magiccards.info/scans/en/ogw/86.jpg
image_updated=2016-02-29
value=2.500
rarity=M
type=Legendary,Creature
subtype=Vampire,Warrior
cost={2}{B}{B}
pt=3/4
ability=Lifelink;\
{2}{B}, Sacrifice another Vampire: Put two +1/+1 counters on SN;\
{2}{B}, Sacrifice another Zombie: Put two +1/+1 counters on SN;\
Whenever a nontoken creature an opponent controls dies, put a 2/2 black Zombie creature token onto the battlefield.
timing=main
requires_groovy_code
oracle=Lifelink\nIf a nontoken creature an opponent controls would die, instead exile that card and put a 2/2 black Zombie creature token onto the battlefield.\n{2}{B}, Sacrifice another Vampire or Zombie: Put two +1/+1 counters on Kalitas, Traitor of Ghet.

Script

[
    new WouldBeMovedTrigger(MagicTrigger.REPLACEMENT) {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MoveCardAction act) {
            if (act.card.hasType(MagicType.Creature) &&
                act.card.isEnemy(permanent) &&
                act.to(MagicLocationType.Graveyard) &&
                act.from(MagicLocationType.Battlefield)) {
                act.setToLocation(MagicLocationType.Exile);
            }
            return MagicEvent.NONE;
        }
    }
]
Pushed