mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08: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,14 +168,9 @@ public abstract class MatchImpl implements Match {
|
||||||
MatchPlayer matchWinner = null;
|
MatchPlayer matchWinner = null;
|
||||||
for (MatchPlayer matchPlayer : players) {
|
for (MatchPlayer matchPlayer : players) {
|
||||||
if (!matchPlayer.hasQuit()) {
|
if (!matchPlayer.hasQuit()) {
|
||||||
if (matchPlayer.getDeck() == null) {
|
|
||||||
logger.error("MatchPlayer's deck was null - matchId " + this.getId() + " - " + matchPlayer.getName());
|
|
||||||
matchPlayer.setQuit(true);
|
|
||||||
} else {
|
|
||||||
activePlayers++;
|
activePlayers++;
|
||||||
matchWinner = matchPlayer;
|
matchWinner = matchPlayer;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (matchPlayer.getWins() >= options.getWinsNeeded()) {
|
if (matchPlayer.getWins() >= options.getWinsNeeded()) {
|
||||||
matchPlayer.setMatchWinner(true);
|
matchPlayer.setMatchWinner(true);
|
||||||
endTime = new Date();
|
endTime = new Date();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue