mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/AreaTriggers: Don't suppress TimeToTarget changes in values update on movement start
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user