Minor formating change.

This commit is contained in:
LevelX2 2012-12-26 20:40:45 +01:00
parent bc9fc67b58
commit cf876dc8f9

View file

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