fix(Scripts/HoS): Remove custom Dark Matter speed calculation (#23817)

This commit is contained in:
Andrew
2025-11-21 18:52:56 -03:00
committed by GitHub
parent c73fef7488
commit c19593efe9

View File

@@ -549,14 +549,9 @@ public:
if (!plr)
return; //no target
float speed = 10.0f;
float tooFarAwaySpeed = me->GetDistance(plr->GetPositionX(), plr->GetPositionY(), plr->GetPositionZ()) / (5000.0f * 0.001f);
if (speed < tooFarAwaySpeed)
speed = tooFarAwaySpeed;
darkMatterTarget->GetMotionMaster()->MovePoint(0, plr->GetPositionX(), plr->GetPositionY(), plr->GetPositionZ());
darkMatterTarget->GetMotionMaster()->MovePoint(0, plr->GetPositionX(), plr->GetPositionY(), plr->GetPositionZ(), FORCED_MOVEMENT_NONE, speed);
if (darkMatterTarget->GetDistance(plr) < 15.0f)
if (darkMatterTarget->GetDistance(plr) < 5.0f)
{
events.RescheduleEvent(EVENT_DARK_MATTER_END, 3s);
}