mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix back blast if damage not allowed (#6030)
This commit is contained in:
parent
3eddd5ef72
commit
e24ed0fa92
@ -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);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user