diff options
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 58f8f72d47b..307941d3e5c 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -144,6 +144,7 @@ void SmartAI::PausePath(uint32 delay, bool forced) _waypointPauseForced = forced; SetRun(mRun); me->PauseMovement(); + me->SetHomePosition(me->GetPosition()); } else _waypointReached = false; @@ -407,6 +408,7 @@ void SmartAI::WaypointReached(uint32 nodeId, uint32 pathId) { _waypointReached = true; me->PauseMovement(); + me->SetHomePosition(me->GetPosition()); } else if (HasEscortState(SMART_ESCORT_ESCORTING) && me->GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE) { |
