Skip to content

Commit

Permalink
fix(Script/Karazhan): Voidzones should only happen in Portal Phase (a…
Browse files Browse the repository at this point in the history
…zerothcore#17315)

Update boss_netherspite.cpp
  • Loading branch information
Tereneckla authored Sep 23, 2023
1 parent fcd58da commit fb1d356
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/server/scripts/EasternKingdoms/Karazhan/boss_netherspite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,17 @@ struct boss_netherspite : public BossAI
}
}).Schedule(10s, PORTAL_PHASE, [this](TaskContext context)
{
UpdatePortals();
context.Repeat(1s);
UpdatePortals();
context.Repeat(1s);
}).Schedule(10s, PORTAL_PHASE, [this](TaskContext context)
{
DoCastSelf(SPELL_EMPOWERMENT);
me->AddAura(SPELL_NETHERBURN_AURA, me);
context.Repeat(90s);
DoCastSelf(SPELL_EMPOWERMENT);
me->AddAura(SPELL_NETHERBURN_AURA, me);
context.Repeat(90s);
}).Schedule(15s, PORTAL_PHASE, [this](TaskContext context)
{
DoCastRandomTarget(SPELL_VOIDZONE, 1, 45.0f, true, true);
context.Repeat(15s);
});
Talk(EMOTE_PHASE_PORTAL);
}
Expand Down Expand Up @@ -267,11 +271,7 @@ struct boss_netherspite : public BossAI
HandleDoors(false);
SwitchToPortalPhase();
DoZoneInCombat();
scheduler.Schedule(15s, [this](TaskContext context)
{
DoCastRandomTarget(SPELL_VOIDZONE, 1, 45.0f, true, true);
context.Repeat(15s);
}).Schedule(9min, [this](TaskContext /*context*/)
scheduler.Schedule(9min, [this](TaskContext /*context*/)
{
if (!berserk)
{
Expand Down

0 comments on commit fb1d356

Please sign in to comment.