mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Small fix that the player itself doesn't count as opponent
This commit is contained in:
parent
d2f1a98511
commit
94435d5e9d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue