aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-03 19:42:50 +0200
committerShauren <shauren.trinity@gmail.com>2024-06-03 19:42:50 +0200
commit63bc405faeb7afcf99de6f7531e4ea59065165f4 (patch)
tree8320e3f1a166e7a204d1d428eeec4e799a856aa2 /src
parentb2a77f6d015380dd46aaba7764b91e5d39a44e45 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Spell.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index a398fe55343..1f4504ad3e4 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -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;