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,7 +53,9 @@ public class OpponentsLostLifeCount implements DynamicValue {
if (watcher != null && you != null) {
int amountLifeLost = 0;
for(UUID opponent: you.getInRange()) {
amountLifeLost += watcher.getLiveLost(opponent);
if (!opponent.equals(controllerId)) {
amountLifeLost += watcher.getLiveLost(opponent);
}
}
return amountLifeLost;
}