fix(Script/Karazhan): Voidzones should only happen in Portal Phase (#17315)

Update boss_netherspite.cpp
This commit is contained in:
Tereneckla
2023-09-23 01:24:41 +00:00
committed by GitHub
parent fcd58da08c
commit fb1d356af9

View File

@@ -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);
}
@@ -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)
{