fix(Core/Spells): properly handle SPELLMOD_COOLDOWN for spell category cooldowns. (#8161)

- Closes #8155
This commit is contained in:
UltraNix
2021-10-04 15:47:30 +02:00
committed by GitHub
parent 0d1f72a55b
commit 60fb2c38f8
2 changed files with 8 additions and 1 deletions

View File

@@ -10169,7 +10169,8 @@ void Player::AddSpellAndCategoryCooldowns(SpellInfo const* spellInfo, uint32 ite
useSpellCooldown = true;
}
}
else if (catrec > 0 && !spellInfo->HasAttribute(SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS))
if (catrec > 0 && !spellInfo->HasAttribute(SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS))
{
ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, catrec, spell);
}