fix(Scripts/DB): Terenthis quest chain (#9714)

This commit is contained in:
Cláudio Costa
2022-01-19 21:39:16 +00:00
committed by GitHub
parent e122de2a0d
commit 92887b1578
2 changed files with 166 additions and 0 deletions

View File

@@ -255,6 +255,12 @@ void SmartAI::PausePath(uint32 delay, bool forced)
me->StopMoving();
me->GetMotionMaster()->MoveIdle();//force stop
auto waypoint = mWayPoints->find(mCurrentWPID);
if (float orientation = waypoint->second->o)
{
me->SetFacingTo(orientation);
}
}
GetScript()->ProcessEventsFor(SMART_EVENT_WAYPOINT_PAUSED, nullptr, mCurrentWPID, GetScript()->GetPathId());
}