fixed mobs not pathing

- fixed roaming (todo: should probably move to attackstate too or something)
This commit is contained in:
Tahir Akhlaq 2017-08-23 19:31:03 +01:00
parent 54af893570
commit cbbfa4ed95
8 changed files with 31 additions and 15 deletions

View file

@ -131,8 +131,13 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
}
}
public bool AtPoint(Vector3 point)
public bool AtPoint(Vector3 point = null)
{
if (point == null && path != null && path.Count > 0)
{
point = path[path.Count - 1];
}
if (distanceFromPoint == 0)
return owner.positionX == point.X && owner.positionZ == point.Z;
else