This commit is contained in:
Jonas Zeunert
2022-09-01 00:46:06 +02:00
parent 175265be84
commit 9725c69118

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 == len(self.gameState.players) - 1:
if self.gameState.currentPlayer.ballsLeft == 0 and self.gameState.currentPlayer.id == self.gameState.playerCount - 1:
self.gameState.endGame()
return