mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Minor formating change.
This commit is contained in:
parent
bc9fc67b58
commit
cf876dc8f9
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue