From e24ed0fa9293a604535be15f2ed4ac03cbbb5dd6 Mon Sep 17 00:00:00 2001 From: Dystopian Date: Sun, 7 Jan 2018 03:24:44 +0300 Subject: [PATCH] Fix back blast if damage not allowed (#6030) --- addons/overpressure/functions/fnc_firedEHBB.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/overpressure/functions/fnc_firedEHBB.sqf b/addons/overpressure/functions/fnc_firedEHBB.sqf index 6cc3297f8b..e1370f0e9e 100644 --- a/addons/overpressure/functions/fnc_firedEHBB.sqf +++ b/addons/overpressure/functions/fnc_firedEHBB.sqf @@ -54,8 +54,8 @@ if (_distance < _backblastRange) then { if (isClass (configFile >> "CfgPatches" >> "ACE_Medical") && {([_unit] call EFUNC(medical,hasMedicalEnabled))}) then { [_unit, _damage, "body", "backblast"] call EFUNC(medical,addDamageToUnit); } else { - TRACE_1("",isDamageAllowed _x); - if (!isDamageAllowed _x) exitWith {}; // Skip damage if not allowed + TRACE_1("",isDamageAllowed _unit); + if (!isDamageAllowed _unit) exitWith {}; // Skip damage if not allowed _unit setDamage (damage _unit + _damage); }; };