From 5ad923485c05c1753cf7b395e200e6ca79cdf2c5 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 14 Jan 2019 13:30:19 -0500 Subject: [PATCH] fixed Teysa Karlov not increasing triggers --- Mage.Sets/src/mage/cards/t/TeysaKarlov.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Mage.Sets/src/mage/cards/t/TeysaKarlov.java b/Mage.Sets/src/mage/cards/t/TeysaKarlov.java index 461fbb03a5..5b4c94bf5c 100644 --- a/Mage.Sets/src/mage/cards/t/TeysaKarlov.java +++ b/Mage.Sets/src/mage/cards/t/TeysaKarlov.java @@ -33,7 +33,7 @@ public final class TeysaKarlov extends CardImpl { this.toughness = new MageInt(4); // If a creature dying causes a triggered ability of a permanent you control to trigger, that ability triggers an additional time. - this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new TeysaKarlovEffect())); + this.addAbility(new SimpleStaticAbility(new TeysaKarlovEffect())); // Creature tokens you control have vigilance and lifelink. Ability ability = new SimpleStaticAbility( @@ -89,15 +89,13 @@ class TeysaKarlovEffect extends ReplacementEffectImpl { if (event instanceof NumberOfTriggersEvent) { NumberOfTriggersEvent numberOfTriggersEvent = (NumberOfTriggersEvent) event; if (source.isControlledBy(event.getPlayerId()) - && game.getPermanent(numberOfTriggersEvent.getSourceId()) != null + && game.getPermanentOrLKIBattlefield(numberOfTriggersEvent.getSourceId()) != null && numberOfTriggersEvent.getSourceEvent() instanceof ZoneChangeEvent) { ZoneChangeEvent zEvent = (ZoneChangeEvent) numberOfTriggersEvent.getSourceEvent(); - if (zEvent.getFromZone() == Zone.BATTLEFIELD + return zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GRAVEYARD && zEvent.getTarget() != null - && zEvent.getTarget().isCreature()) { - return true; - } + && zEvent.getTarget().isCreature(); } } return false;