mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/Instances: Reimplement resetting instances from UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user