mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fixed console spam.
This commit is contained in:
parent
dcb0d4e484
commit
b502d01a08
1 changed files with 7 additions and 6 deletions
|
|
@ -617,6 +617,10 @@ void WorldSession::HandleBugOpcode( WorldPacket & recv_data )
|
|||
void WorldSession::HandleReclaimCorpseOpcode(WorldPacket &recv_data)
|
||||
{
|
||||
sLog.outDetail("WORLD: Received CMSG_RECLAIM_CORPSE");
|
||||
|
||||
uint64 guid;
|
||||
recv_data >> guid;
|
||||
|
||||
if (GetPlayer()->isAlive())
|
||||
return;
|
||||
|
||||
|
|
@ -640,9 +644,6 @@ void WorldSession::HandleReclaimCorpseOpcode(WorldPacket &recv_data)
|
|||
if (!corpse->IsWithinDistInMap(GetPlayer(), CORPSE_RECLAIM_RADIUS, true))
|
||||
return;
|
||||
|
||||
uint64 guid;
|
||||
recv_data >> guid;
|
||||
|
||||
// resurrect
|
||||
GetPlayer()->ResurrectPlayer(GetPlayer()->InBattleGround() ? 1.0f : 0.5f);
|
||||
|
||||
|
|
@ -654,14 +655,14 @@ void WorldSession::HandleResurrectResponseOpcode(WorldPacket & recv_data)
|
|||
{
|
||||
sLog.outDetail("WORLD: Received CMSG_RESURRECT_RESPONSE");
|
||||
|
||||
if(GetPlayer()->isAlive())
|
||||
return;
|
||||
|
||||
uint64 guid;
|
||||
uint8 status;
|
||||
recv_data >> guid;
|
||||
recv_data >> status;
|
||||
|
||||
if(GetPlayer()->isAlive())
|
||||
return;
|
||||
|
||||
if(status == 0)
|
||||
{
|
||||
GetPlayer()->clearResurrectRequestData(); // reject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue