mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/Karazhan): Clear Netherspite portal targets on transition (#17377)
This commit is contained in:
@@ -101,6 +101,12 @@ struct boss_netherspite : public BossAI
|
|||||||
BossAI::Reset();
|
BossAI::Reset();
|
||||||
berserk = false;
|
berserk = false;
|
||||||
HandleDoors(true);
|
HandleDoors(true);
|
||||||
|
|
||||||
|
for (int i = 0; i < 3; ++i)
|
||||||
|
{
|
||||||
|
PortalGUID[i].Clear();
|
||||||
|
BeamTarget[i].Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SummonPortals()
|
void SummonPortals()
|
||||||
@@ -233,6 +239,12 @@ struct boss_netherspite : public BossAI
|
|||||||
summons.DespawnEntry(id);
|
summons.DespawnEntry(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < 3; ++i)
|
||||||
|
{
|
||||||
|
PortalGUID[i].Clear();
|
||||||
|
BeamTarget[i].Clear();
|
||||||
|
}
|
||||||
|
|
||||||
scheduler.Schedule(30s, [this](TaskContext)
|
scheduler.Schedule(30s, [this](TaskContext)
|
||||||
{
|
{
|
||||||
SwitchToPortalPhase();
|
SwitchToPortalPhase();
|
||||||
|
|||||||
Reference in New Issue
Block a user