Core/Maps: Implemented MapFlags2::IgnoreInstanceFarmLimit

Port From (https://github.com/TrinityCore/TrinityCore/commit/4667db37f34504e25feefba7506ac31cfd7dceed)
This commit is contained in:
hondacrx
2022-10-04 20:12:32 -04:00
parent b0955ca8ea
commit c9702bf85b
+1 -1
View File
@@ -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;
}