fix(Scripts/Spells): Readiness should remove all spell category coold… (#12595)

…owns.
This commit is contained in:
UltraNix
2022-08-06 01:58:54 +02:00
committed by GitHub
parent 757f047681
commit 1288539b58

View File

@@ -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());
}
}
}