From c9702bf85baf2dd182f1e43ab72ab4766c90da4d Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 4 Oct 2022 20:12:32 -0400 Subject: [PATCH] Core/Maps: Implemented MapFlags2::IgnoreInstanceFarmLimit Port From (https://github.com/TrinityCore/TrinityCore/commit/4667db37f34504e25feefba7506ac31cfd7dceed) --- Source/Game/Maps/Map.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Maps/Map.cs b/Source/Game/Maps/Map.cs index 94c507105..3563bfb4d 100644 --- a/Source/Game/Maps/Map.cs +++ b/Source/Game/Maps/Map.cs @@ -1722,7 +1722,7 @@ namespace Game.Maps } // players are only allowed to enter 10 instances per hour - if (entry.IsDungeon() && !player.CheckInstanceCount(instanceIdToCheck) && !player.IsDead()) + if (!entry.GetFlags2().HasFlag(MapFlags2.IgnoreInstanceFarmLimit) && entry.IsDungeon() && !player.CheckInstanceCount(instanceIdToCheck) && !player.IsDead()) return EnterState.CannotEnterTooManyInstances; }