mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-07 01:18:55 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user