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
+3 -2
View File
@@ -390,11 +390,12 @@ namespace Game.AI
return true;
}
public override void WaypointPathStarted(uint nodeId, uint pathId)
public override void WaypointPathStarted(uint pathId)
{
if (!HasEscortState(SmartEscortState.Escorting))
{
GetScript().ProcessEventsFor(SmartEvents.WaypointStart, null, nodeId, pathId);
// @todo remove the constant 1 at some point, it's never anything different
GetScript().ProcessEventsFor(SmartEvents.WaypointStart, null, 1, pathId);
return;
}
}