fix(Scripts/HOR): Fix leader walking during escape (#23787)

This commit is contained in:
Traesh
2025-11-21 00:41:33 +01:00
committed by GitHub
parent dfc636df08
commit ee3c76e024

View File

@@ -1950,8 +1950,8 @@ public:
currentStopPoint = 0; currentStopPoint = 0;
events.Reset(); events.Reset();
} }
void DoAction(int32 actionId) override
void DoAction(int32 actionId) override
{ {
switch (actionId) switch (actionId)
{ {
@@ -1989,7 +1989,7 @@ public:
path.push_back(G3D::Vector3(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ())); path.push_back(G3D::Vector3(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ()));
for (uint8 i = WP_STOP[currentStopPoint - 1] + (currentStopPoint == 1 ? 0 : 1); i <= WP_STOP[currentStopPoint]; ++i) for (uint8 i = WP_STOP[currentStopPoint - 1] + (currentStopPoint == 1 ? 0 : 1); i <= WP_STOP[currentStopPoint]; ++i)
path.push_back(G3D::Vector3(PathWaypoints[i].GetPositionX(), PathWaypoints[i].GetPositionY(), PathWaypoints[i].GetPositionZ())); path.push_back(G3D::Vector3(PathWaypoints[i].GetPositionX(), PathWaypoints[i].GetPositionY(), PathWaypoints[i].GetPositionZ()));
me->GetMotionMaster()->MoveSplinePath(&path); me->GetMotionMaster()->MoveSplinePath(&path, FORCED_MOVEMENT_RUN);
} }
void MovementInform(uint32 type, uint32 /*id*/) override void MovementInform(uint32 type, uint32 /*id*/) override