From 24c6b62ad42efd08c4de432e2213d9aa3b4502f9 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 7 Jun 2025 19:23:36 +0200 Subject: [PATCH] Fix missing check in handle_ew_jamming w.r.t. plugin option --- game/missiongenerator/aircraft/flightgroupconfigurator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/missiongenerator/aircraft/flightgroupconfigurator.py b/game/missiongenerator/aircraft/flightgroupconfigurator.py index d49d45c0..b696ab35 100644 --- a/game/missiongenerator/aircraft/flightgroupconfigurator.py +++ b/game/missiongenerator/aircraft/flightgroupconfigurator.py @@ -185,6 +185,8 @@ class FlightGroupConfigurator: if not member.is_player: return settings = self.flight.coalition.game.settings + if not settings.plugin_option("ewrj"): + return # Check if ecm_required option is enabled jammer_required = settings.plugin_option("ewrj.ecm_required") has_jammer = member.loadout.has_weapon_of_type(WeaponType.JAMMER)