mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Backblast - Fix damage disabled units receiving damage from backblast (#7505)
* Fix damage disabled units receiving damage from backblast * Add variable check
This commit is contained in:
parent
10fa22ff24
commit
65e1601114
@ -56,12 +56,13 @@ TRACE_3("cache",_overpressureAngle,_overpressureRange,_overpressureDamage);
|
|||||||
// If the target is the ACE_player
|
// If the target is the ACE_player
|
||||||
if (_x == ACE_player) then {[_damage * 100] call BIS_fnc_bloodEffect};
|
if (_x == ACE_player) then {[_damage * 100] call BIS_fnc_bloodEffect};
|
||||||
|
|
||||||
if (isClass (configFile >> "CfgPatches" >> "ACE_Medical")) then {
|
TRACE_1("",isDamageAllowed _x);
|
||||||
[_x, _damage, "body", "backblast", _firer] call EFUNC(medical,addDamageToUnit);
|
if (isDamageAllowed _x && {_x getVariable [QEGVAR(medical,allowDamage), true]}) then {
|
||||||
} else {
|
if (isClass (configFile >> "CfgPatches" >> "ACE_Medical")) then {
|
||||||
TRACE_1("",isDamageAllowed _x);
|
[_x, _damage, "body", "backblast", _firer] call EFUNC(medical,addDamageToUnit);
|
||||||
if (!isDamageAllowed _x) exitWith {}; // Skip damage if not allowed
|
} else {
|
||||||
_x setDamage (damage _x + _damage);
|
_x setDamage (damage _x + _damage);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef DEBUG_MODE_FULL
|
#ifdef DEBUG_MODE_FULL
|
||||||
|
Loading…
Reference in New Issue
Block a user