diff --git a/optionals/compat_sog/functions/fnc_handlePunjiTrapDamage.sqf b/optionals/compat_sog/functions/fnc_handlePunjiTrapDamage.sqf index 9201929656..2448dcf7d0 100644 --- a/optionals/compat_sog/functions/fnc_handlePunjiTrapDamage.sqf +++ b/optionals/compat_sog/functions/fnc_handlePunjiTrapDamage.sqf @@ -19,7 +19,7 @@ params ["_trap"]; if (isNull (configFile >> "CfgPatches" >> "ace_medical")) exitWith {}; private _radius = getNumber (configOf _trap >> "indirectHitRange"); -private _affectedUnits = (_trap nearEntities ["CAManBase", _radius]) select {local _x}; +private _affectedUnits = (_trap nearEntities ["CAManBase", _radius]) select {local _x} select {isDamageAllowed _x}; (getShotParents _trap) params ["", "_instigator"]; if (_affectedUnits isEqualTo []) exitWith {};