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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user