mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
fix(Core/Spells): properly handle SPELLMOD_COOLDOWN for spell category cooldowns. (#8161)
- Closes #8155
This commit is contained in:
@@ -10169,7 +10169,8 @@ void Player::AddSpellAndCategoryCooldowns(SpellInfo const* spellInfo, uint32 ite
|
|||||||
useSpellCooldown = true;
|
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);
|
ApplySpellMod(spellInfo->Id, SPELLMOD_COOLDOWN, catrec, spell);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7456,6 +7456,12 @@ void SpellMgr::LoadDbcDataCorrections()
|
|||||||
spellInfo->SpellFamilyFlags[0] |= 0x40;
|
spellInfo->SpellFamilyFlags[0] |= 0x40;
|
||||||
break;
|
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
|
// Xinef: The Veiled Sea area in outlands (Draenei zone), client blocks casting flying mounts
|
||||||
|
|||||||
Reference in New Issue
Block a user