mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +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();
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user