forked from External/mage
Fixed a bug that a tournament match did not end, if a player left during sideboarding.
This commit is contained in:
parent
61edeb4809
commit
f85f477b90
2 changed files with 6 additions and 7 deletions
|
|
@ -416,13 +416,6 @@ public class TournamentController {
|
|||
return tournament.isAbort();
|
||||
}
|
||||
|
||||
public boolean isPlayerAlive(UUID playerId) {
|
||||
if (tournamentSessions.containsKey(playerId)) {
|
||||
return tournamentSessions.get(playerId).isKilled();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void checkPlayersState() {
|
||||
for (TournamentPlayer tournamentPlayer: tournament.getPlayers()) {
|
||||
if (!tournamentPlayer.isEliminated() && tournamentPlayer.getPlayer().isHuman()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue