Core/AI: merged walk / run fix for EscortAI

This commit is contained in:
Ovahlord committed 2018-08-20 02:53:42 +02:00
1 parent f95d9d0599
commit c4ce03f525
2 files changed
+12 -4

No files matched your search

@@ -799,8 +799,13 @@ ObjectGuid SmartAI::GetGUID(int32 /*id*/) const
void SmartAI::SetRun(bool run)
{
if (run == mRun)
return;
me->SetWalk(!run);
mRun = run;
for (auto& node : _path.nodes)
node.moveType = run ? WAYPOINT_MOVE_TYPE_RUN : WAYPOINT_MOVE_TYPE_WALK;
}
void SmartAI::SetDisableGravity(bool fly)