Menu

Submission for Teysa, Envoy of Ghosts

234

Comment

tested in magarena 1.43

Config

name=Teysa, Envoy of Ghosts
url=http://magiccards.info/dgm/en/108.html
image=http://magiccards.info/scans/en/dgm/108.jpg
value=3.952
rarity=R
type=Legendary,Creature
subtype=Human,Advisor
cost={5}{W}{B}
pt=4/4
ability=vigilance;protection from creatures
timing=main
requires_groovy_code

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (permanent.isController(damage.getTarget()) &&
					damage.isCombat() &&
                    damage.getSource().isCreature()) ?
                new MagicEvent(
					permanent,
					damage.getSource(),
					this,
					"Destroy RN. " +
					"PN puts a 1/1 white and black Spirit creature token with flying onto the battlefield."
				):
                MagicEvent.NONE;
        }

        @Override
		public void executeEvent(final MagicGame game, final MagicEvent event) {
			game.doAction(new MagicDestroyAction(event.getRefPermanent()));
			game.doAction(new MagicPlayTokenAction(
				event.getPermanent().getController(),
				TokenCardDefinitions.get("1/1 white and black Spirit creature token with flying")
			));
		}
    }   
]
Pushed