From ad411b49b772b40e870fd5079f3328807631facd Mon Sep 17 00:00:00 2001 From: Saqra1 <161769195+Saqra1@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:05:12 -0500 Subject: [PATCH] fix(Core/Spell) Ritual spells cooldown on cancel (#19604) https://github.com/cmangos/mangos-wotlk/commit/762f78b313cff195aadc0aab4b4ab9eaf2957892 Co-authored-by: killerwife --- src/server/game/Spells/Spell.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 37eaf0a0be4a54..e722c1d6cd11d9 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3738,6 +3738,9 @@ void Spell::cancel(bool bySelf) if (Unit* unit = m_caster->GetGUID() == ihit->targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, ihit->targetGUID)) unit->RemoveOwnedAura(m_spellInfo->Id, m_originalCasterGUID, 0, AURA_REMOVE_BY_CANCEL); + if (m_spellInfo->HasAttribute(SPELL_ATTR0_COOLDOWN_ON_EVENT)) + m_caster->ToPlayer()->RemoveSpellCooldown(m_spellInfo->Id, true); + SendChannelUpdate(0); SendInterrupted(SPELL_FAILED_INTERRUPTED); }