Skip to content

Commit

Permalink
fix(Core/Spell) Ritual spells cooldown on cancel (azerothcore#19604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saqra1 and killerwife authored Aug 13, 2024
1 parent c33e30f commit ad411b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ad411b4

Please sign in to comment.