Core/Instances: Reimplement resetting instances from UI

This commit is contained in:
Shauren
2020-01-11 12:49:50 +01:00
parent 76be303351
commit ddd0c7b152
8 changed files with 159 additions and 148 deletions

View File

@@ -335,8 +335,8 @@ bool MapManager::DestroyMap(Map* map)
map->UnloadAll();
// Free up the instance id and allow it to be reused for bgs and arenas (other instances are handled in the InstanceSaveMgr)
if (map->IsBattlegroundOrArena())
// Free up the instance id and allow it to be reused for normal dungeons, bgs and arenas
if (map->IsBattlegroundOrArena() || (map->IsDungeon() && !map->GetMapDifficulty()->HasResetSchedule()))
sMapMgr->FreeInstanceId(map->GetInstanceId());
// erase map