From 1288539b5894b0a4517c52714d4eb1207957c6d2 Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 6 Aug 2022 01:58:54 +0200 Subject: [PATCH] =?UTF-8?q?fix(Scripts/Spells):=20Readiness=20should=20rem?= =?UTF-8?q?ove=20all=20spell=20category=20coold=E2=80=A6=20(#12595)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …owns. --- src/server/scripts/Spells/spell_hunter.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index 0e715bf55..759141d94 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -666,10 +666,13 @@ class spell_hun_readiness : public SpellScript && spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && spellInfo->Id != SPELL_HUNTER_READINESS && spellInfo->Id != SPELL_HUNTER_BESTIAL_WRATH - && spellInfo->Id != SPELL_DRAENEI_GIFT_OF_THE_NAARU - && spellInfo->GetRecoveryTime() > 0) + && spellInfo->Id != SPELL_DRAENEI_GIFT_OF_THE_NAARU) { - caster->RemoveSpellCooldown(spellInfo->Id, itr->second.needSendToClient); + if (spellInfo->RecoveryTime > 0) + caster->RemoveSpellCooldown(spellInfo->Id, itr->second.needSendToClient); + + if (spellInfo->CategoryRecoveryTime > 0) + caster->RemoveCategoryCooldown(spellInfo->GetCategory()); } } }