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

View File

@@ -7456,6 +7456,12 @@ void SpellMgr::LoadDbcDataCorrections()
spellInfo->SpellFamilyFlags[0] |= 0x40;
break;
}
// Recklessness/Shield Wall/Retaliation
if (spellInfo->Category == 132 && spellInfo->SpellFamilyName == SPELLFAMILY_WARRIOR)
{
spellInfo->AttributesEx6 |= SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS;
}
}
// Xinef: The Veiled Sea area in outlands (Draenei zone), client blocks casting flying mounts