fix build.

This commit is contained in:
hondacrx
2021-03-04 15:38:07 -05:00
parent a43e8468dc
commit 707a1e0dda
+2 -2
View File
@@ -3164,7 +3164,7 @@ namespace Game.AI
//if friendly event&&who is not hostile OR hostile event&&who is hostile
if ((e.Event.los.noHostile != 0 && !me.IsHostileTo(unit)) || (e.Event.los.noHostile == 0 && me.IsHostileTo(unit)))
{
if (e.Event.los.playerOnly && !unit.IsTypeId(TypeId.Player))
if (e.Event.los.playerOnly != 0 && !unit.IsTypeId(TypeId.Player))
return;
RecalcTimer(e, e.Event.los.cooldownMin, e.Event.los.cooldownMax);
@@ -3186,7 +3186,7 @@ namespace Game.AI
//if friendly event&&who is not hostile OR hostile event&&who is hostile
if ((e.Event.los.noHostile != 0 && !me.IsHostileTo(unit)) || (e.Event.los.noHostile == 0 && me.IsHostileTo(unit)))
{
if (e.Event.los.playerOnly && !unit.IsTypeId(TypeId.Player))
if (e.Event.los.playerOnly != 0 && !unit.IsTypeId(TypeId.Player))
return;
RecalcTimer(e, e.Event.los.cooldownMin, e.Event.los.cooldownMax);