mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Fixed a bug that falsely ended players tournaments.
This commit is contained in:
parent
881822d404
commit
a439f30c21
1 changed files with 2 additions and 7 deletions
|
@ -168,13 +168,8 @@ public abstract class MatchImpl implements Match {
|
|||
MatchPlayer matchWinner = null;
|
||||
for (MatchPlayer matchPlayer : players) {
|
||||
if (!matchPlayer.hasQuit()) {
|
||||
if (matchPlayer.getDeck() == null) {
|
||||
logger.error("MatchPlayer's deck was null - matchId " + this.getId() + " - " + matchPlayer.getName());
|
||||
matchPlayer.setQuit(true);
|
||||
} else {
|
||||
activePlayers++;
|
||||
matchWinner = matchPlayer;
|
||||
}
|
||||
activePlayers++;
|
||||
matchWinner = matchPlayer;
|
||||
}
|
||||
if (matchPlayer.getWins() >= options.getWinsNeeded()) {
|
||||
matchPlayer.setMatchWinner(true);
|
||||
|
|
Loading…
Reference in a new issue