mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/HoS): Remove custom Dark Matter speed calculation (#23817)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user