fix(Script/Karazhan): Netherspite resets threat after portal phase (#17362)

* Update boss_netherspite.cpp

* Update boss_netherspite.cpp

* Update boss_netherspite.cpp
This commit is contained in:
Tereneckla
2023-09-26 21:15:18 +00:00
committed by GitHub
parent a8e514ea39
commit c05acf4f96

View File

@@ -50,7 +50,7 @@ enum Portals
enum Groups
{
PORTAL_PHASE = 0,
VANISH_PHASE = 1
BANISH_PHASE = 1
};
const float PortalCoord[3][3] =
@@ -192,7 +192,7 @@ struct boss_netherspite : public BossAI
Talk(EMOTE_PHASE_PORTAL);
}
scheduler.CancelGroup(VANISH_PHASE);
scheduler.CancelGroup(BANISH_PHASE);
me->RemoveAurasDueToSpell(SPELL_BANISH_ROOT);
me->RemoveAurasDueToSpell(SPELL_BANISH_VISUAL);
SummonPortals();
@@ -236,8 +236,9 @@ struct boss_netherspite : public BossAI
scheduler.Schedule(30s, [this](TaskContext)
{
SwitchToPortalPhase();
DoResetThreatList();
return;
}).Schedule(10s, VANISH_PHASE, [this](TaskContext context)
}).Schedule(10s, BANISH_PHASE, [this](TaskContext context)
{
DoCastRandomTarget(SPELL_NETHERBREATH, 0, 40.0f, true);
context.Repeat(5s, 7s);