Core/SmartAI: SetRun fix for SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c3690db917016461f4c94b7e75bd16e67b5b0f0)
This commit is contained in:
@@ -765,8 +765,13 @@ namespace Game.AI
|
|||||||
|
|
||||||
public void SetRun(bool run)
|
public void SetRun(bool run)
|
||||||
{
|
{
|
||||||
|
if (run == _run)
|
||||||
|
return;
|
||||||
|
|
||||||
me.SetWalk(!run);
|
me.SetWalk(!run);
|
||||||
_run = run;
|
_run = run;
|
||||||
|
foreach (var node in _path.nodes)
|
||||||
|
node.moveType = run ? WaypointMoveType.Run : WaypointMoveType.Walk;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetDisableGravity(bool disable = true)
|
public void SetDisableGravity(bool disable = true)
|
||||||
|
|||||||
Reference in New Issue
Block a user