Naxx core sync

This commit is contained in:
Yunfan Li
2024-11-25 23:05:20 +08:00
parent f925db1ca4
commit d9dc25a15f
3 changed files with 14 additions and 81 deletions

View File

@@ -834,17 +834,14 @@ bool AnubrekhanPositionAction::Execute(Event event)
{
return false;
}
EventMap* eventMap = &boss_ai->events;
uint32 locust = eventMap->GetNextEventTime(2);
uint32 timer = eventMap->GetTimer();
bool inPhase = botAI->HasAura("locust swarm", boss) || boss->GetCurrentSpell(CURRENT_GENERIC_SPELL);
if (inPhase || (locust && locust - timer <= 8000))
if (inPhase)
{
if (botAI->IsMainTank(bot))
{
uint32 nearest = FindNearestWaypoint();
uint32 next_point;
if (inPhase || (locust && locust - timer <= 3000))
if (inPhase)
{
next_point = (nearest + 1) % intervals;
}