fix build.
This commit is contained in:
@@ -3164,7 +3164,7 @@ namespace Game.AI
|
|||||||
//if friendly event&&who is not hostile OR hostile event&&who is hostile
|
//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.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;
|
return;
|
||||||
|
|
||||||
RecalcTimer(e, e.Event.los.cooldownMin, e.Event.los.cooldownMax);
|
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 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.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;
|
return;
|
||||||
|
|
||||||
RecalcTimer(e, e.Event.los.cooldownMin, e.Event.los.cooldownMax);
|
RecalcTimer(e, e.Event.los.cooldownMin, e.Event.los.cooldownMax);
|
||||||
|
|||||||
Reference in New Issue
Block a user