From 69c85ca8a2387498d87730b4a4791aa3c56200ba Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:57:14 -0300 Subject: [PATCH] fix(Scripts/ZulAman): Overpower spell cooldown (#20828) --- .../scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp index 66959734b83b3b..0f6bdb587de04d 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp @@ -178,11 +178,9 @@ struct boss_zuljin : public BossAI }, 20s); ScheduleTimedEvent(1s, [&] { - if (!me->HasSpellCooldown(SPELL_OVERPOWER)) - { - if (me->GetVictim() && me->GetComboPoints()) - DoCastVictim(SPELL_OVERPOWER); - } + if (!me->HasSpellCooldown(SPELL_OVERPOWER) && me->GetVictim() && me->GetComboPoints()) + if (DoCastVictim(SPELL_OVERPOWER) == SPELL_CAST_OK) + me->AddSpellCooldown(SPELL_OVERPOWER, 0, 5000); }, 1s); });