diff --git a/events/EndBallEvent.py b/events/EndBallEvent.py index ae13394..470a89c 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 == self.gameState.playerCount - 1: + if self.gameState.currentPlayer.ballsLeft == 0 and self.gameState.currentPlayer.id == (self.gameState.playerCount - 1): self.gameState.endGame() return