From cf876dc8f9a6c849764b5099b7da3a22da620457 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 26 Dec 2012 20:40:45 +0100 Subject: [PATCH] Minor formating change. --- .../condition/common/DealtDamageToAnOpponent.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java b/Mage/src/mage/abilities/condition/common/DealtDamageToAnOpponent.java index 99ebdfb5faa..c185837e206 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; } }