forked from External/mage
fixed bug #3834
This commit is contained in:
parent
5457907b9b
commit
255b81f143
2 changed files with 11 additions and 6 deletions
|
|
@ -32,7 +32,6 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.watchers.common.PlayerLostLifeWatcher;
|
||||
|
||||
/**
|
||||
|
|
@ -49,11 +48,7 @@ public class OpponentsLostLifeCount implements DynamicValue {
|
|||
public int calculate(Game game, UUID controllerId) {
|
||||
PlayerLostLifeWatcher watcher = (PlayerLostLifeWatcher) game.getState().getWatchers().get(PlayerLostLifeWatcher.class.getSimpleName());
|
||||
if (watcher != null) {
|
||||
int amountLifeLost = 0;
|
||||
for (UUID opponentId : game.getOpponents(controllerId)) {
|
||||
amountLifeLost += watcher.getLiveLost(opponentId);
|
||||
}
|
||||
return amountLifeLost;
|
||||
return watcher.getAllOppLifeLost(controllerId);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue