NewFunction(Core/Pathing) Path End Reached (#10017)
This commit is contained in:
parent
75aeec80a4
commit
86f1b87fe6
2 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ public:
|
|||
// Called at waypoint reached or point movement finished
|
||||
virtual void MovementInform(uint32 /*type*/, uint32 /*id*/) {}
|
||||
|
||||
// Called at MovePath End
|
||||
virtual void PathEndReached() {}
|
||||
|
||||
void OnCharmed(bool apply) override;
|
||||
|
||||
// Called at reaching home after evade
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue