mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user