Core/Maps: Replace some Instanceable() checks with IsDungeon()
This commit is contained in:
1 parent
265c2fa508
commit
b732521f17
5 files changed
+9
-13
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user