[9514] Implement opcode CMSG_HEARTH_AND_RESURRECT

Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
Blaymoira 2010-03-04 08:54:14 +01:00 committed by Lightguard
parent e892fd6a9b
commit 6af247d34f
4 changed files with 17 additions and 2 deletions

View file

@ -1573,3 +1573,17 @@ void WorldSession::HandleReadyForAccountDataTimes(WorldPacket& /*recv_data*/)
SendAccountDataTimes(GLOBAL_CACHE_MASK);
}
void WorldSession::HandleHearthandResurrect(WorldPacket & /*recv_data*/)
{
sLog.outDebug("WORLD: CMSG_HEARTH_AND_RESURRECT");
// Can't use in flight
if (_player->isInFlight())
return;
// Send Everytime
_player->BuildPlayerRepop();
_player->ResurrectPlayer(100);
_player->TeleportToHomebind();
}