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
This commit is contained in:
Ovahlord
2021-06-12 15:18:04 +02:00
parent ab405f6935
commit bd57f795bd

View File

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