diff options
-rw-r--r-- | src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp index d8740a99c2..c5541a4039 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_cthun.cpp @@ -190,7 +190,7 @@ struct boss_eye_of_cthun : public BossAI void EnterCombat(Unit* who) override { - ScheduleTasks(); + ScheduleTasks(true); BossAI::EnterCombat(who); _beamTarget = who->GetGUID(); } @@ -231,12 +231,12 @@ struct boss_eye_of_cthun : public BossAI } } - void ScheduleTasks() + void ScheduleTasks(bool onEngage = false) { _scheduler. - Schedule(3s, [this](TaskContext task) + Schedule(3s, [this, onEngage](TaskContext task) { - if (task.GetRepeatCounter() < 3) + if (task.GetRepeatCounter() < 3 && onEngage) { if (Unit* target = ObjectAccessor::GetUnit(*me, _beamTarget)) { |