fix(Scripts/TempleOfAhnQiraj): Despawn Eye of Cthun once encounter is… (#13336)
...done
This commit is contained in:
@@ -314,6 +314,7 @@ struct boss_eye_of_cthun : public BossAI
|
|||||||
}
|
}
|
||||||
|
|
||||||
DoCastSelf(SPELL_DARK_GLARE);
|
DoCastSelf(SPELL_DARK_GLARE);
|
||||||
|
|
||||||
++DarkGlareTick;
|
++DarkGlareTick;
|
||||||
|
|
||||||
if (tasker.GetRepeatCounter() >= 35)
|
if (tasker.GetRepeatCounter() >= 35)
|
||||||
@@ -534,6 +535,11 @@ struct boss_cthun : public BossAI
|
|||||||
{
|
{
|
||||||
pPortal->DespawnOrUnsummon();
|
pPortal->DespawnOrUnsummon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Creature* eye = instance->GetCreature(DATA_EYE_OF_CTHUN))
|
||||||
|
{
|
||||||
|
eye->DespawnOrUnsummon();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SummonedCreatureDies(Creature* creature, Unit* /*killer*/) override
|
void SummonedCreatureDies(Creature* creature, Unit* /*killer*/) override
|
||||||
@@ -560,7 +566,7 @@ struct boss_cthun : public BossAI
|
|||||||
ScheduleTasks();
|
ScheduleTasks();
|
||||||
//Remove purple coloration
|
//Remove purple coloration
|
||||||
me->RemoveAurasDueToSpell(SPELL_PURPLE_COLORATION);
|
me->RemoveAurasDueToSpell(SPELL_PURPLE_COLORATION);
|
||||||
|
DoCastSelf(SPELL_CARAPACE_CTHUN, true);
|
||||||
//Spawn flesh tentacle
|
//Spawn flesh tentacle
|
||||||
for (uint8 i = 0; i < 2; i++)
|
for (uint8 i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user