Core/AI: UnitAI trimming part two. WaypointX methods kicked upstairs to CreatureAI

Port From (https://github.com/TrinityCore/TrinityCore/commit/e0afca513a9bfbd82134942e1266e46811707cbb)
This commit is contained in:
hondacrx
2021-04-28 10:58:26 -04:00
parent cb471274e8
commit 5b0391b1d9
4 changed files with 15 additions and 12 deletions
@@ -59,8 +59,8 @@ namespace Game.Movement
_nextMoveTime.Reset(1000);
// inform AI
if (creature.GetAI() != null)
creature.GetAI().WaypointPathStarted(1, _path.id);
if (creature.IsAIEnabled)
creature.GetAI().WaypointPathStarted(_path.id);
}
public override void DoInitialize(Creature creature)