diff --git a/Source/Game/AI/SmartScripts/SmartScript.cs b/Source/Game/AI/SmartScripts/SmartScript.cs index d00d5d544..fdb1ae4e7 100644 --- a/Source/Game/AI/SmartScripts/SmartScript.cs +++ b/Source/Game/AI/SmartScripts/SmartScript.cs @@ -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);