ich will fertig werden

This commit is contained in:
Jonas Zeunert
2022-09-01 00:45:17 +02:00
parent 0dea250e44
commit 175265be84
2 changed files with 5 additions and 1 deletions

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