mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/AzjolNerub): update Azjol-Nerub's Anub'arak (#23570)
This commit is contained in:
@@ -133,13 +133,13 @@ struct boss_anub_arak : public BossAI
|
|||||||
DoCastSelf(SPELL_IMPALE_PERIODIC, true);
|
DoCastSelf(SPELL_IMPALE_PERIODIC, true);
|
||||||
|
|
||||||
++_submergePhase;
|
++_submergePhase;
|
||||||
|
events.Reset();
|
||||||
ScheduleSubmerged();
|
ScheduleSubmerged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScheduleEmerged()
|
void ScheduleEmerged()
|
||||||
{
|
{
|
||||||
events.Reset();
|
|
||||||
events.SetPhase(PHASE_EMERGED);
|
events.SetPhase(PHASE_EMERGED);
|
||||||
events.ScheduleEvent(EVENT_CARRION_BEETLES, 6500ms, 0, PHASE_EMERGED);
|
events.ScheduleEvent(EVENT_CARRION_BEETLES, 6500ms, 0, PHASE_EMERGED);
|
||||||
events.ScheduleEvent(EVENT_LEECHING_SWARM, 20s, 0, PHASE_EMERGED);
|
events.ScheduleEvent(EVENT_LEECHING_SWARM, 20s, 0, PHASE_EMERGED);
|
||||||
@@ -148,7 +148,6 @@ struct boss_anub_arak : public BossAI
|
|||||||
|
|
||||||
void ScheduleSubmerged()
|
void ScheduleSubmerged()
|
||||||
{
|
{
|
||||||
events.Reset();
|
|
||||||
events.SetPhase(PHASE_SUBMERGED);
|
events.SetPhase(PHASE_SUBMERGED);
|
||||||
events.ScheduleEvent(EVENT_EMERGE, 60s, 0, PHASE_SUBMERGED);
|
events.ScheduleEvent(EVENT_EMERGE, 60s, 0, PHASE_SUBMERGED);
|
||||||
|
|
||||||
@@ -209,14 +208,13 @@ struct boss_anub_arak : public BossAI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void JustEngagedWith(Unit* who) override
|
void JustEngagedWith(Unit* /*who*/) override
|
||||||
{
|
{
|
||||||
BossAI::JustEngagedWith(who);
|
|
||||||
Talk(SAY_AGGRO);
|
Talk(SAY_AGGRO);
|
||||||
instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
instance->DoStartTimedAchievement(ACHIEVEMENT_TIMED_TYPE_EVENT, ACHIEV_TIMED_START_EVENT);
|
||||||
|
|
||||||
events.SetPhase(PHASE_EMERGED);
|
events.SetPhase(PHASE_EMERGED);
|
||||||
events.ScheduleEvent(EVENT_CLOSE_DOORS, 5s);
|
events.ScheduleEvent(EVENT_CLOSE_DOORS, 5s, 0, PHASE_EMERGED);
|
||||||
ScheduleEmerged();
|
ScheduleEmerged();
|
||||||
|
|
||||||
// set up world triggers
|
// set up world triggers
|
||||||
@@ -288,7 +286,8 @@ struct boss_anub_arak : public BossAI
|
|||||||
if (_remainingLargeSummonsBeforeEmerge == 0)
|
if (_remainingLargeSummonsBeforeEmerge == 0)
|
||||||
{
|
{
|
||||||
events.Reset();
|
events.Reset();
|
||||||
events.ScheduleEvent(EVENT_EMERGE, 5s);
|
events.SetPhase(PHASE_SUBMERGED);
|
||||||
|
events.ScheduleEvent(EVENT_EMERGE, 5s, 0, PHASE_SUBMERGED);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -333,10 +332,10 @@ struct boss_anub_arak : public BossAI
|
|||||||
DoCastSelf(SPELL_SELF_ROOT, true);
|
DoCastSelf(SPELL_SELF_ROOT, true);
|
||||||
me->DisableRotate(true);
|
me->DisableRotate(true);
|
||||||
me->SendMovementFlagUpdate();
|
me->SendMovementFlagUpdate();
|
||||||
events.ScheduleEvent(EVENT_ENABLE_ROTATE, 3300ms);
|
events.ScheduleEvent(EVENT_ENABLE_ROTATE, 3300ms, 0, PHASE_EMERGED);
|
||||||
DoCast(target, SPELL_POUND);
|
DoCast(target, SPELL_POUND);
|
||||||
}
|
}
|
||||||
events.ScheduleEvent(EVENT_POUND, 18s);
|
events.ScheduleEvent(EVENT_POUND, 18s, 0, PHASE_EMERGED);
|
||||||
break;
|
break;
|
||||||
case EVENT_ENABLE_ROTATE:
|
case EVENT_ENABLE_ROTATE:
|
||||||
me->RemoveAurasDueToSpell(SPELL_SELF_ROOT);
|
me->RemoveAurasDueToSpell(SPELL_SELF_ROOT);
|
||||||
|
|||||||
Reference in New Issue
Block a user