mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Spells: Don't send SMSG_CAST_FAILED for interrupted spells after they were launched or channelling was started (this clears cooldown on client)
Closes #26077
This commit is contained in:
@@ -3249,8 +3249,7 @@ void Spell::cancel()
|
||||
CancelGlobalCooldown();
|
||||
[[fallthrough]];
|
||||
case SPELL_STATE_DELAYED:
|
||||
SendInterrupted(0);
|
||||
SendCastResult(SPELL_FAILED_INTERRUPTED);
|
||||
SendInterrupted(SPELL_FAILED_INTERRUPTED);
|
||||
break;
|
||||
|
||||
case SPELL_STATE_CASTING:
|
||||
@@ -3260,8 +3259,7 @@ void Spell::cancel()
|
||||
unit->RemoveOwnedAura(m_spellInfo->Id, m_originalCasterGUID, 0, AURA_REMOVE_BY_CANCEL);
|
||||
|
||||
SendChannelUpdate(0);
|
||||
SendInterrupted(0);
|
||||
SendCastResult(SPELL_FAILED_INTERRUPTED);
|
||||
SendInterrupted(SPELL_FAILED_INTERRUPTED);
|
||||
|
||||
m_appliedMods.clear();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user