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:
1 parent
ab405f6935
commit
bd57f795bd
1 file changed
+1
-1
@@ -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