Skip to content

Commit

Permalink
Re #18: Fail at pitch invasion
Browse files Browse the repository at this point in the history
This prevents us continuing and getting obscure issues that are caused
by inconsistent state
  • Loading branch information
IBBoard committed Dec 19, 2021
1 parent 0deb5d3 commit ee7b374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bbreplay/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ def _process_kickoff(self, cmds, log_entries, board):
board.blitz()
yield from self._process_turn(cmds, log_entries, board, False)
elif kickoff_result == KickoffEvent.PITCH_INVASION:
# XXX: Players may get stunned, but we've not currently got any examples so we need to check what happens
pass
raise NotImplementedError("Cannot process 'Pitch Invasion' event because injured players aren't identified")
else:
raise NotImplementedError(f"{kickoff_result} not yet implemented")

Expand Down

0 comments on commit ee7b374

Please sign in to comment.