From bd1618e41d43761b4ef55bb98cfd2a254dfc5d46 Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Tue, 22 Jun 2021 17:14:14 +0100 Subject: [PATCH] Use pydcs has_tacan attribute to check if tankers support TACAN. --- gen/aircraft.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gen/aircraft.py b/gen/aircraft.py index 1f20ada0..949e5e98 100644 --- a/gen/aircraft.py +++ b/gen/aircraft.py @@ -26,7 +26,6 @@ from dcs.planes import ( Su_33, Tu_22M3, ) -from dcs.planes import IL_78M from dcs.point import MovingPoint, PointAction from dcs.task import ( AWACS, @@ -1761,7 +1760,7 @@ class RaceTrackBuilder(PydcsWaypointBuilder): def configure_refueling_actions(self, waypoint: MovingPoint) -> None: waypoint.add_task(Tanker()) - if self.flight.unit_type.dcs_unit_type != IL_78M: + if self.flight.unit_type.dcs_unit_type.tacan: tanker_info = self.air_support.tankers[-1] tacan = tanker_info.tacan tacan_callsign = {