Core/AreaTriggers: Add AREATRIGGER_ACTION_TAVERN (#31035)

This commit is contained in:
Jason Dove
2025-06-15 08:54:43 -05:00
committed by GitHub
parent 9090a940bf
commit 8e6c7bdc5d
7 changed files with 87 additions and 13 deletions

View File

@@ -567,9 +567,14 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPackets::AreaTrigger::AreaTrigge
{
// set resting flag we are in the inn
if (packet.Entered)
player->GetRestMgr().SetInnTriggerID(atEntry->ID);
{
player->GetRestMgr().SetInnTrigger(InnAreaTrigger{ .IsDBC = true, .AreaTriggerEntryId = atEntry->ID });
}
else
{
player->GetRestMgr().RemoveRestFlag(REST_FLAG_IN_TAVERN);
player->GetRestMgr().SetInnTrigger(std::nullopt);
}
if (sWorld->IsFFAPvPRealm())
{