mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Small fix to won method of PlayerImpl.
This commit is contained in:
parent
fe051b5d29
commit
2e34bf356e
1 changed files with 2 additions and 2 deletions
|
@ -1159,8 +1159,8 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
|
|||
if (game.getPlayers().size() > 2) {
|
||||
for (UUID opponentId: game.getOpponents(playerId)) {
|
||||
Player opponent = game.getPlayer(opponentId);
|
||||
if (!opponent.hasLost()) {
|
||||
game.getPlayer(opponentId).lost(game);
|
||||
if (opponent != null && !opponent.hasLost()) {
|
||||
opponent.lost(game);
|
||||
}
|
||||
}
|
||||
this.wins = true;
|
||||
|
|
Loading…
Reference in a new issue