Core/Maps: Implemented MapFlags2::IgnoreInstanceFarmLimit
Port From (https://github.com/TrinityCore/TrinityCore/commit/4667db37f34504e25feefba7506ac31cfd7dceed)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user