change playerstate to be function

This commit is contained in:
Jonas Zeunert
2022-05-05 23:08:02 +02:00
parent ae93fd81f2
commit ff5d9d4dfa
7 changed files with 22 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ class EndBallEvent(Event):
def trigger(self, target):
super().trigger(target)
if self.playerState().replayBall or not self.playerState.hasBallScored:
if self.playerState().replayBall or not self.playerState().hasBallScored:
StartBallEvent().trigger(None)
return