Core/Player: moved zone/area updating and tavern resting checks into Heartbeat and movement updates

(cherry picked from commit cb4c9009b3)

# Conflicts:
#	src/server/game/Entities/Player/Player.cpp
This commit is contained in:
Ovahlord
2024-10-23 19:29:42 +02:00
parent 78e4fe2e9f
commit e14648eaba
6 changed files with 47 additions and 48 deletions

View File

@@ -566,7 +566,7 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPackets::AreaTrigger::AreaTrigge
{
// set resting flag we are in the inn
if (packet.Entered)
player->GetRestMgr().SetRestFlag(REST_FLAG_IN_TAVERN, atEntry->ID);
player->GetRestMgr().SetInnTriggerID(atEntry->ID);
else
player->GetRestMgr().RemoveRestFlag(REST_FLAG_IN_TAVERN);