fix(Scripts/SethekkHalls): Fix Anzu not leaving banish phase when all… (#17337)

fix(Scripts/SethekkHalls): Fix Anzu not leaving banish phase when all adds die
This commit is contained in:
Skjalf
2023-09-25 08:05:39 -03:00
committed by GitHub
parent e4717dc179
commit b6e5e9f884
@@ -83,13 +83,13 @@ struct boss_anzu : public BossAI
uint32 talkTimer; uint32 talkTimer;
void SummonedCreatureDies(Creature* summon, Unit*) override void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) override
{ {
if (summon->GetEntry() == NPC_BROOD_OF_ANZU) if (summon->GetEntry() == NPC_BROOD_OF_ANZU)
{ {
summons.Despawn(summon); summons.Despawn(summon);
summons.RemoveNotExisting(); summons.RemoveNotExisting();
if (summons.empty()) if (!summons.HasEntry(NPC_BROOD_OF_ANZU))
{ {
me->RemoveAurasDueToSpell(SPELL_BANISH_SELF); me->RemoveAurasDueToSpell(SPELL_BANISH_SELF);
} }