mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user