mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9514] Implement opcode CMSG_HEARTH_AND_RESURRECT
Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
parent
e892fd6a9b
commit
6af247d34f
4 changed files with 17 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue