mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spells: Restore sending SMSG_CAST_FAILED for spells in SPELL_STATE_PREPARING state (cast bar in progress) unintentionally removed in 63bc405fae
This commit is contained in:
@@ -3247,11 +3247,11 @@ void Spell::cancel()
|
||||
{
|
||||
case SPELL_STATE_PREPARING:
|
||||
CancelGlobalCooldown();
|
||||
[[fallthrough]];
|
||||
SendCastResult(SPELL_FAILED_INTERRUPTED);
|
||||
break;
|
||||
case SPELL_STATE_DELAYED:
|
||||
SendInterrupted(SPELL_FAILED_INTERRUPTED);
|
||||
break;
|
||||
|
||||
case SPELL_STATE_CASTING:
|
||||
for (TargetInfo const& targetInfo : m_UniqueTargetInfo)
|
||||
if (targetInfo.MissCondition == SPELL_MISS_NONE)
|
||||
@@ -3263,7 +3263,6 @@ void Spell::cancel()
|
||||
|
||||
m_appliedMods.clear();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user