Core/Instances: Add instance reset events at lock expiration

Port From (https://github.com/TrinityCore/TrinityCore/commit/20357af88ec9265869cca3c1db3c5f43ef37e587)
This commit is contained in:
hondacrx
2022-10-04 20:05:57 -04:00
parent 60995d9a93
commit e377263fea
2 changed files with 33 additions and 10 deletions
@@ -279,7 +279,6 @@ namespace Game.Maps
if (instanceLock.IsExpired())
{
Cypher.Assert(instanceLock.IsExtended(), "Instance lock must have been extended to create instance map from it");
instanceLock.SetExpiryTime(GetNextResetTime(entries));
instanceLock.SetExtended(false);
Log.outDebug(LogFilter.Instance, $"[{entries.Map.Id}-{entries.Map.MapName[Global.WorldMgr.GetDefaultDbcLocale()]} | " +