From e5f0f978584f966deee3108cc8d5ee850a1f59b2 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Mon, 17 Jul 2023 21:19:40 +0200 Subject: [PATCH] fix(Scripts/TempleOfAhnQiraj): let small Eye Tentacles attack the raid (#16784) * initial * whitespace * hrm * easier --- .../Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp index 3008e7188..df615ef0d 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp @@ -620,28 +620,28 @@ struct npc_eye_tentacle : public ScriptedAI void Reset() override { + DoZoneInCombat(); _scheduler.Schedule(500ms, [this](TaskContext /*task*/) - { - DoCastAOE(SPELL_GROUND_RUPTURE); - }) - .Schedule(5min, [this](TaskContext /*task*/) - { - me->DespawnOrUnsummon(); - }) - .Schedule(1s, 5s, [this](TaskContext context) - { - if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, NotInStomachSelector())) - { - DoCast(target, SPELL_MIND_FLAY); - } - - context.Repeat(10s, 15s); - }); + { + DoCastAOE(SPELL_GROUND_RUPTURE); + }) + .Schedule(5min, [this](TaskContext /*task*/) + { + me->DespawnOrUnsummon(); + }); } void JustEngagedWith(Unit* /*who*/) override { - DoZoneInCombat(); + _scheduler.Schedule(1s, 5s, [this](TaskContext context) + { + if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, NotInStomachSelector())) + { + DoCast(target, SPELL_MIND_FLAY); + } + + context.Repeat(10s, 15s); + }); } void UpdateAI(uint32 diff) override