Core/Maps: Replace some Instanceable() checks with IsDungeon()

This commit is contained in:
Shauren authored and Ovahlord committed 2022-12-26 13:40:18 +01:00
1 parent 265c2fa508
commit b732521f17
5 files changed
+9 -13

No files matched your search

+1 -1
View File
@@ -320,7 +320,7 @@ public:
std::shared_ptr<TerrainInfo> terrain = sTerrainMgr.LoadTerrain(zoneEntry->ContinentID);
MapEntry const* mapEntry = sMapStore.LookupEntry(terrain->GetId());
if (!mapEntry || !mapEntry->Instanceable())
if (!mapEntry || !mapEntry->IsDungeon())
{
handler->PSendSysMessage(LANG_INVALID_ZONE_MAP, areaEntry->ID, areaEntry->AreaName, terrain->GetId(), terrain->GetMapName());
handler->SetSentErrorMessage(true);
+1 -1
View File
@@ -550,7 +550,7 @@ public:
if (!target->GetMap()->IsBattlegroundOrArena())
target->SetBattlegroundEntryPoint();
}
else if (map->Instanceable())
else if (map->IsDungeon())
{
Map* targetMap = target->GetMap();
Player* targetGroupLeader = nullptr;