mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix Hercules AirAssault exception
This commit is contained in:
parent
105d1abba8
commit
3024bd6479
@ -62,13 +62,13 @@ class AirAssaultFlightPlan(FormationAttackFlightPlan, UiZoneDisplay):
|
|||||||
def tot_waypoint(self) -> FlightWaypoint:
|
def tot_waypoint(self) -> FlightWaypoint:
|
||||||
if self.flight.is_helo and self.layout.drop_off is not None:
|
if self.flight.is_helo and self.layout.drop_off is not None:
|
||||||
return self.layout.drop_off
|
return self.layout.drop_off
|
||||||
return self.layout.target
|
return self.layout.targets[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ingress_time(self) -> timedelta:
|
def ingress_time(self) -> timedelta:
|
||||||
tot = self.tot
|
tot = self.tot
|
||||||
travel_time = self.travel_time_between_waypoints(
|
travel_time = self.travel_time_between_waypoints(
|
||||||
self.layout.ingress, self.layout.drop_off
|
self.layout.ingress, self.tot_waypoint
|
||||||
)
|
)
|
||||||
return tot - travel_time
|
return tot - travel_time
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user