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:
Shauren
2024-06-03 19:42:50 +02:00
parent b2a77f6d01
commit 63bc405fae

View File

@@ -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;