NewFunction(Core/Pathing) Path End Reached (#10017)

This commit is contained in:
Malcrom
2022-01-05 00:22:51 -04:00
committed by GitHub
parent 75aeec80a4
commit 86f1b87fe6
2 changed files with 4 additions and 0 deletions

View File

@@ -138,6 +138,7 @@ bool WaypointMovementGenerator<Creature>::StartMove(Creature* creature)
if ((i_currentNode == i_path->size() - 1) && !repeating) // If that's our last waypoint
{
creature->GetMotionMaster()->Initialize();
creature->AI()->PathEndReached();
return false;
}