Skip to content

Commit

Permalink
Fix back blast if damage not allowed (#6030)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dystopian authored and PabstMirror committed Jan 7, 2018
1 parent 3eddd5e commit e24ed0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/overpressure/functions/fnc_firedEHBB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
};
Expand Down

0 comments on commit e24ed0f

Please sign in to comment.