Core/AreaTriggers: Add AREATRIGGER_ACTION_TAVERN

Port From (https://github.com/TrinityCore/TrinityCore/commit/8e6c7bdc5d9805fdd33bec35cfe2f7b154b4ed58)
This commit is contained in:
Hondacrx
2025-08-18 10:43:18 -04:00
parent 32d166380c
commit 8d0b667dd4
5 changed files with 79 additions and 17 deletions
+6 -1
View File
@@ -245,9 +245,14 @@ namespace Game
{
// set resting flag we are in the inn
if (packet.Entered)
player.GetRestMgr().SetInnTriggerID(atEntry.Id);
{
player.GetRestMgr().SetInnTrigger(new InnAreaTrigger(true, atEntry.Id));
}
else
{
player.GetRestMgr().RemoveRestFlag(RestFlag.Tavern);
player.GetRestMgr().SetInnTrigger(null);
}
if (Global.WorldMgr.IsFFAPvPRealm())
{