Fix inCombat checks from 0a17804

My mistake from 0a17804
This commit is contained in:
ebaydayz
2016-10-02 21:13:17 -04:00
parent 004a3bcde4
commit 8196c2343a
4 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ dayz_lastDamageSourceNull = false;
if (_unit == player) then {
//Set player in combat
_unit setVariable["startcombattimer", 1];
if (_unit getVariable["inCombat",false]) then {
if !(_unit getVariable["inCombat",false]) then {
_unit setVariable["inCombat",true,true];
};