From bd57f795bde36b36352e17c9400473eeede142e7 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 12 Jun 2021 15:18:04 +0200 Subject: [PATCH] Core/Spells: send the correct cast failure reason when trying to queue up a spell cast while not being able to do so yet closes #264 --- src/server/game/Handlers/SpellHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp index 4d8e8718317..2ad666fcb77 100644 --- a/src/server/game/Handlers/SpellHandler.cpp +++ b/src/server/game/Handlers/SpellHandler.cpp @@ -274,7 +274,7 @@ void WorldSession::HandleCastSpellOpcode(WorldPackets::Spells::CastSpell& cast) if (mover->CanRequestSpellCast(spellInfo)) mover->RequestSpellCast(PendingSpellCastRequest(std::move(cast.Cast)), spellInfo); else if (mover->IsPlayer()) - Spell::SendCastResult(mover->ToPlayer(), spellInfo, cast.Cast.CastID, SPELL_FAILED_DONT_REPORT); + Spell::SendCastResult(mover->ToPlayer(), spellInfo, cast.Cast.CastID, SPELL_FAILED_SPELL_IN_PROGRESS); } void WorldSession::HandleCancelCastOpcode(WorldPacket& recvPacket)