From debbed0159fec031b4596295448e43d0fe071a01 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 8 Jan 2025 00:26:08 +0100 Subject: Core/AreaTriggers: Don't suppress TimeToTarget changes in values update on movement start --- .../scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Shadowlands') diff --git a/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp b/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp index 26ca7bd0126..871c4d33bef 100644 --- a/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp +++ b/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp @@ -2957,7 +2957,7 @@ struct at_anduin_wrynn_wicked_star : AreaTriggerAI splinePoints.push_back(PositionToVector3(at->GetPosition())); float timeToTarget = at->GetDistance(destPos.GetPositionX(), destPos.GetPositionY(), destPos.GetPositionZ()) * 2 / GetWickedStarSpeed(at->GetMap()->GetDifficultyID()) * 1000; - at->InitSplines(std::move(splinePoints), timeToTarget); + at->InitSplines(splinePoints, timeToTarget); } } @@ -3021,7 +3021,7 @@ struct at_anduin_wrynn_empowered_wicked_star : public at_anduin_wrynn_wicked_sta splinePoints.push_back(PositionToVector3(destPos)); float timeToTarget = at->GetDistance(destPos.GetPositionX(), destPos.GetPositionY(), destPos.GetPositionZ()) / EMPOWERED_WICKED_STAR_SPEED * 1000; - at->InitSplines(std::move(splinePoints), timeToTarget); + at->InitSplines(splinePoints, timeToTarget); } void OnInitialize() override -- cgit v1.2.3