fix(core/spell): Presence of Mind should not apply cooldown mods on c… (#17890)

fix(core/spell): Presence of Mind should not apply cooldown mods on category spells.

Mage T4 set 4 set bonus puts cooldown reduction on Presence of Mind which should not be passed down to category spells,
because in case of infinity cooldown on Arcane Power it does not get reset when you lose the Presence of Mind aura and Arcane Power stays forever in cooldown
or more specifically for 1 month(infinity cooldown).

Closes https://github.com/azerothcore/azerothcore-wotlk/issues/17800
Patch 3.0.9 https://wowpedia.fandom.com/wiki/Patch_3.0.9

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Lyuboslav Kotsev
2024-06-17 23:05:07 +03:00
committed by GitHub
parent e76a5ad0f2
commit 10892a519d

View File

@@ -4797,6 +4797,13 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->MaxAffectedTargets = 5;
});
// Presence Of Mind
ApplySpellFix({ 12043 }, [](SpellInfo* spellInfo)
{
// It should not share cooldown mods with category[1151] spells (Arcane Power [12042], Decimate [47271])
spellInfo->AttributesEx6 |= SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];