This commit is contained in:
Jonas Zeunert
2022-09-01 00:42:02 +02:00
parent e9e1b90c33
commit 0dea250e44

View File

@@ -41,7 +41,7 @@ class EndBallEvent(Event):
self.scorePoints()
self.gameState.currentPlayer.deactivate()
if self.gameState.currentPlayer.ballsLeft == 0 and self.gameState.currentPlayer.id == config.MAX_PLAYERS - 1:
if self.gameState.currentPlayer.ballsLeft == 0 and self.gameState.currentPlayer.id == len(self.gameState.players):
self.gameState.endGame()
return