Core/SmartAI: SetRun fix for SAI, because for some reason it has like 95% of escortai code duplicated??? shitshow zz

closes #21463
This commit is contained in:
Treeston
2018-08-19 19:59:32 +02:00
parent 38d3b35561
commit f95a383293

View File

@@ -709,8 +709,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)