We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6152ac9 + 91131b2 commit f2307f6Copy full SHA for f2307f6
1 file changed
battlecode25/engine/game/game.py
@@ -73,7 +73,7 @@ def run_turn(robot: Robot):
73
self.team_info.add_execution_time(robot.team, run_time)
74
if self.team_info.get_execution_time(robot.team) >= GameConstants.MAX_TEAM_EXECUTION_TIME:
75
self.resign(robot.team)
76
- if robot.disintegrated:
+ if robot.disintegrated and robot.id in self.id_to_robot:
77
self.destroy_robot(robot.id, True)
78
79
if self.running:
0 commit comments