From 10892a519d2b529205729a3c67308fcae70ac1f9 Mon Sep 17 00:00:00 2001 From: Lyuboslav Kotsev Date: Mon, 17 Jun 2024 23:05:07 +0300 Subject: [PATCH] =?UTF-8?q?fix(core/spell):=20Presence=20of=20Mind=20shoul?= =?UTF-8?q?d=20not=20apply=20cooldown=20mods=20on=20c=E2=80=A6=20(#17890)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- src/server/game/Spells/SpellInfoCorrections.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index ae0797b8e..8099392d6 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -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];