From bbf34f90da2e6432e79652c0b525780fa703e724 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 20 Jun 2014 00:46:29 +0200 Subject: [PATCH] * Descendant of Kiyomaro - Saved a casting exception of triggered ability. --- .../abilities/common/DealsCombatDamageTriggeredAbility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/common/DealsCombatDamageTriggeredAbility.java b/Mage/src/mage/abilities/common/DealsCombatDamageTriggeredAbility.java index 308c0187d1..88ebfeedf4 100644 --- a/Mage/src/mage/abilities/common/DealsCombatDamageTriggeredAbility.java +++ b/Mage/src/mage/abilities/common/DealsCombatDamageTriggeredAbility.java @@ -32,7 +32,7 @@ import mage.abilities.TriggeredAbilityImpl; import mage.abilities.effects.Effect; import mage.constants.Zone; import mage.game.Game; -import mage.game.events.DamagedCreatureEvent; +import mage.game.events.DamagedEvent; import mage.game.events.GameEvent; import mage.target.targetpointer.FixedTarget; @@ -67,7 +67,7 @@ public class DealsCombatDamageTriggeredAbility extends TriggeredAbilityImpl { public boolean checkTrigger(GameEvent event, Game game) { if (event.getType() == GameEvent.EventType.DAMAGED_CREATURE || event.getType() == GameEvent.EventType.DAMAGED_PLANESWALKER || event.getType() == GameEvent.EventType.DAMAGED_PLAYER) { if (event.getSourceId().equals(this.sourceId) - && ((DamagedCreatureEvent) event).isCombatDamage()) { + && ((DamagedEvent) event).isCombatDamage()) { if (setTargetPointer) { for (Effect effect : this.getEffects()) { effect.setTargetPointer(new FixedTarget(event.getTargetId()));