This commit is contained in:
Jonas Zeunert
2022-09-01 00:50:50 +02:00
parent 00122949c2
commit 326272289d

View File

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