Add replay ball
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import config
|
||||
from Event import Event
|
||||
|
||||
from events.EndGameEvent import EndGameEvent
|
||||
from events.StartBallEvent import StartBallEvent
|
||||
|
||||
from solenoids.MainFlipper import MainFlipper
|
||||
@@ -33,7 +32,7 @@ class EndBallEvent(Event):
|
||||
self.gameState.currentPlayer.deactivate()
|
||||
|
||||
if self.gameState.currentPlayer.ballsLeft == 0 and self.gameState.currentPlayer.id == config.MAX_PLAYERS - 1:
|
||||
EndGameEvent().trigger(None)
|
||||
self.gameState.endGame()
|
||||
return
|
||||
|
||||
self.gameState.nextPlayer()
|
||||
|
||||
Reference in New Issue
Block a user