From 811ef478f89a70dfb0a640f16629ef88c7378c4f Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 8 Oct 2022 13:24:40 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/TempleOfAhnQiraj):=20Despawn=20Eye?= =?UTF-8?q?=20of=20Cthun=20once=20encounter=20is=E2=80=A6=20(#13336)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...done --- .../scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp index 21e6faab3..6ae7c72bf 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp @@ -314,6 +314,7 @@ struct boss_eye_of_cthun : public BossAI } DoCastSelf(SPELL_DARK_GLARE); + ++DarkGlareTick; if (tasker.GetRepeatCounter() >= 35) @@ -534,6 +535,11 @@ struct boss_cthun : public BossAI { pPortal->DespawnOrUnsummon(); } + + if (Creature* eye = instance->GetCreature(DATA_EYE_OF_CTHUN)) + { + eye->DespawnOrUnsummon(); + } } void SummonedCreatureDies(Creature* creature, Unit* /*killer*/) override @@ -560,7 +566,7 @@ struct boss_cthun : public BossAI ScheduleTasks(); //Remove purple coloration me->RemoveAurasDueToSpell(SPELL_PURPLE_COLORATION); - + DoCastSelf(SPELL_CARAPACE_CTHUN, true); //Spawn flesh tentacle for (uint8 i = 0; i < 2; i++) {