Small fix that the player itself doesn't count as opponent

This commit is contained in:
LevelX2 2012-10-17 17:16:01 +02:00
parent d2f1a98511
commit 94435d5e9d

View file

@ -53,8 +53,10 @@ public class OpponentsLostLifeCount implements DynamicValue {
if (watcher != null && you != null) {
int amountLifeLost = 0;
for(UUID opponent: you.getInRange()) {
if (!opponent.equals(controllerId)) {
amountLifeLost += watcher.getLiveLost(opponent);
}
}
return amountLifeLost;
}
return 0;