From 354d089574fb0ded7a996d45f45dea5f3ab8bebf Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 25 Oct 2022 23:06:23 -0300 Subject: [PATCH] fix(Scripts/TempleOfAhnQiraj): Don't let Giant Claw Tentacles autoattack while submerged and reorder digestive acid cast --- .../scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp index c5541a4039..30850705ab 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp @@ -452,10 +452,9 @@ struct boss_cthun : public BossAI target->m_Events.AddEventAtOffset([target, this]() { + DoCast(target, SPELL_DIGESTIVE_ACID, true); DoTeleportPlayer(target, STOMACH_X, STOMACH_Y, STOMACH_Z, STOMACH_O); target->RemoveAurasDueToSpell(SPELL_MIND_FLAY); - //Cast digestive acid on them - DoCast(target, SPELL_DIGESTIVE_ACID, true); }, 3800ms); } @@ -861,7 +860,10 @@ struct npc_giant_claw_tentacle : public ScriptedAI _scheduler.Update(diff); - DoMeleeAttackIfReady(); + if (!me->HasAura(SPELL_SUBMERGE_VISUAL)) + { + DoMeleeAttackIfReady(); + } } private: