Fix bleeding hit logic for enabledFor = 1 (#4585)

* Fix bleeding hit logic for enabledFor = 1

* Handle RC

* fix
This commit is contained in:
PabstMirror 2016-10-28 15:12:37 -05:00 committed by Glowbal
parent 416ab31610
commit e1900d81bc

View File

@ -39,7 +39,7 @@ if (isServer) then {
["CAManBase", "hit", {
params ["_unit"];
if (GVAR(enabledFor) == 1 && {!isPlayer _unit || {_unit == ACE_player}}) exitWith {};
if (GVAR(enabledFor) == 1 && {!isPlayer _unit && {_unit != ACE_player}}) exitWith {};
_this call FUNC(hit);
}] call CBA_fnc_addClassEventHandler;