[12714] Implemented CMSG_RETURN_TO_GRAVEYARD

This commit is contained in:
sanctum32 2013-10-25 00:42:59 +03:00 committed by Antz
parent 08913b2437
commit 7b67ada8e2
5 changed files with 12 additions and 1 deletions

View file

@ -677,6 +677,14 @@ void WorldSession::HandleResurrectResponseOpcode(WorldPacket& recv_data)
GetPlayer()->ResurectUsingRequestData(); // will call spawncorpsebones
}
void WorldSession::HandleReturnToGraveyard(WorldPacket& /*recvPacket*/)
{
if (GetPlayer()->isAlive() || !GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST))
return;
GetPlayer()->RepopAtGraveyard();
}
void WorldSession::HandleAreaTriggerOpcode(WorldPacket& recv_data)
{
DEBUG_LOG("WORLD: Received opcode CMSG_AREATRIGGER");