Core/SmartAI: SetRun fix for SAI

Port From (https://github.com/TrinityCore/TrinityCore/commit/0c3690db917016461f4c94b7e75bd16e67b5b0f0)
This commit is contained in:
hondacrx
2021-10-30 19:59:16 -04:00
parent 6ea312d748
commit 5d94082841
+5
View File
@@ -765,8 +765,13 @@ namespace Game.AI
public void SetRun(bool run)
{
if (run == _run)
return;
me.SetWalk(!run);
_run = run;
foreach (var node in _path.nodes)
node.moveType = run ? WaypointMoveType.Run : WaypointMoveType.Walk;
}
public void SetDisableGravity(bool disable = true)