fix(Scripts/Karazhan): Clear Netherspite portal targets on transition (#17377)
This commit is contained in:
parent
57841f7213
commit
52c7edaa5c
1 changed files with 12 additions and 0 deletions
|
|
@ -101,6 +101,12 @@ struct boss_netherspite : public BossAI
|
|||
BossAI::Reset();
|
||||
berserk = false;
|
||||
HandleDoors(true);
|
||||
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
PortalGUID[i].Clear();
|
||||
BeamTarget[i].Clear();
|
||||
}
|
||||
}
|
||||
|
||||
void SummonPortals()
|
||||
|
|
@ -233,6 +239,12 @@ struct boss_netherspite : public BossAI
|
|||
summons.DespawnEntry(id);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
PortalGUID[i].Clear();
|
||||
BeamTarget[i].Clear();
|
||||
}
|
||||
|
||||
scheduler.Schedule(30s, [this](TaskContext)
|
||||
{
|
||||
SwitchToPortalPhase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue