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 8c9343e0db
commit 24c6b62ad4
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

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)