mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-19 08:30:34 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user