diff --git a/events/EndBallEvent.py b/events/EndBallEvent.py index eaf4c16..84603a2 100644 --- a/events/EndBallEvent.py +++ b/events/EndBallEvent.py @@ -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