From 3024bd6479a85693ab462113d9f262a5a25490d9 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 30 Sep 2023 19:37:16 +0200 Subject: [PATCH] Fix Hercules AirAssault exception --- game/ato/flightplans/airassault.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/ato/flightplans/airassault.py b/game/ato/flightplans/airassault.py index 46a983df..19b5b23c 100644 --- a/game/ato/flightplans/airassault.py +++ b/game/ato/flightplans/airassault.py @@ -62,13 +62,13 @@ class AirAssaultFlightPlan(FormationAttackFlightPlan, UiZoneDisplay): def tot_waypoint(self) -> FlightWaypoint: if self.flight.is_helo and self.layout.drop_off is not None: return self.layout.drop_off - return self.layout.target + return self.layout.targets[0] @property def ingress_time(self) -> timedelta: tot = self.tot travel_time = self.travel_time_between_waypoints( - self.layout.ingress, self.layout.drop_off + self.layout.ingress, self.tot_waypoint ) return tot - travel_time