Skip to content

Commit

Permalink
Overpressure - Don't add backblast damage if blocked (#5848)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Dec 3, 2017
1 parent 99e1e43 commit 7093a99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/overpressure/functions/fnc_firedEHBB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +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
_unit setDamage (damage _unit + _damage);
};
};
Expand Down
2 changes: 2 additions & 0 deletions addons/overpressure/functions/fnc_overpressureDamage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ TRACE_3("cache",_overpressureAngle,_overpressureRange,_overpressureDamage);
if (isClass (configFile >> "CfgPatches" >> "ACE_Medical") && {([_x] call EFUNC(medical,hasMedicalEnabled))}) then {
[_x, _damage, "body", "backblast"] call EFUNC(medical,addDamageToUnit);
} else {
TRACE_1("",isDamageAllowed _x);
if (!isDamageAllowed _x) exitWith {}; // Skip damage if not allowed
_x setDamage (damage _x + _damage);
};

Expand Down

0 comments on commit 7093a99

Please sign in to comment.