From a188f7b7e5be1aa24a8da65d9bcae4004267eee9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 6 Nov 2021 16:35:04 -0700 Subject: [PATCH] Add missing NavalControlPoint case for BAI. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1702 (cherry picked from commit 7a18d160c8e8a3131f9f5173d5ebf5c8ba4ff2df) --- changelog.md | 1 + gen/aircraft.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 9e618321..be12c564 100644 --- a/changelog.md +++ b/changelog.md @@ -41,6 +41,7 @@ Saves from 4.x are not compatible with 5.0. * **[Mission Generation]** Fixed cases with multiple client flights of the same airframe all received the same preset channels. * **[Mission Generation]** F-14A is now generated with stored alignment. * **[Mission Generation]** Su-33s set to cold or warm start on the Kuznetsov will always be generated as runway starts to avoid the AI getting stuck. +* **[Mission Generation]** Fixed AI not receiving anti-ship tasks against carriers and LHAs. * **[Mods]** Fixed broken A-4 support causing no weapons to be available. * **[UI]** Selling of Units is now visible again in the UI dialog and shows the correct amount of sold units * **[UI]** Fixed bug where an incompatible campaign could be generated if no action is taken on the campaign selection screen. diff --git a/gen/aircraft.py b/gen/aircraft.py index c80cd18a..b902b13d 100644 --- a/gen/aircraft.py +++ b/gen/aircraft.py @@ -1529,6 +1529,8 @@ class BaiIngressBuilder(PydcsWaypointBuilder): group_names.append(group.name) elif isinstance(target, MultiGroupTransport): group_names.append(target.name) + elif isinstance(target, NavalControlPoint): + group_names.append(target.get_carrier_group_name()) else: logging.error( "Unexpected target type for BAI mission: %s",