Fix missing check in handle_ew_jamming w.r.t. plugin option

This commit is contained in:
Raffson
2025-06-07 19:23:36 +02:00
parent ab2391e745
commit 1bc876ab61

View File

@@ -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)