From 707a1e0dda3c75b5cae40656a145434cbadf3ff3 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Thu, 4 Mar 2021 15:38:07 -0500 Subject: [PATCH] fix build. --- Source/Game/AI/SmartScripts/SmartScript.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);