mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/HOR): Fix leader walking during escape (#23787)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user