diff --git a/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java b/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java index 99ebdfb5fa..c185837e20 100644 --- a/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java +++ b/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java @@ -34,7 +34,7 @@ import mage.game.Game; import mage.watchers.common.PlayerDamagedBySourceWatcher; /** - * @author LevelX + * @author LevelX2 */ public class DealtDamageToAnOpponent implements Condition { @@ -43,11 +43,12 @@ public class DealtDamageToAnOpponent implements Condition { @Override public boolean apply(Game game, Ability source) { - for (UUID opponentId: game.getOpponents(source.getControllerId())) { - PlayerDamagedBySourceWatcher watcher = (PlayerDamagedBySourceWatcher) game.getState().getWatchers().get("PlayerDamagedBySource", opponentId); - if (watcher != null && watcher.damageSources.contains(source.getSourceId())) - return true; - } + for (UUID opponentId: game.getOpponents(source.getControllerId())) { + PlayerDamagedBySourceWatcher watcher = (PlayerDamagedBySourceWatcher) game.getState().getWatchers().get("PlayerDamagedBySource", opponentId); + if (watcher != null && watcher.damageSources.contains(source.getSourceId())) { + return true; + } + } return false; } }