Commit f5ebc4f5 authored by JoyJ's avatar JoyJ

fix judge selection

parent 9d02842e
Pipeline #17305 canceled with stages
...@@ -141,10 +141,9 @@ function roundEnded(game) { ...@@ -141,10 +141,9 @@ function roundEnded(game) {
player.selectedWhiteCardId = null; player.selectedWhiteCardId = null;
}); });
game.Judge++; game.Judge++;
if (game.Judge >= player.length || game.Judge == null || game.Judge == NaN) { if (game.Judge >= game.players.length) {
game.Judge = 0; game.Judge = 0;
} }
game.players[game.Judge] = false;
} }
catch { catch {
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment