mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
refactor(Core): Add definition file for area table entries. (#22054)
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#ifndef ACORE_DBCSTRUCTURE_H
|
||||
#define ACORE_DBCSTRUCTURE_H
|
||||
|
||||
#include "AreaDefines.h"
|
||||
#include "DBCEnums.h"
|
||||
#include "Define.h"
|
||||
#include "Util.h"
|
||||
@@ -531,7 +532,7 @@ struct AreaTableEntry
|
||||
// helpers
|
||||
[[nodiscard]] bool IsSanctuary() const
|
||||
{
|
||||
if (mapid == 609)
|
||||
if (mapid == MAP_EBON_HOLD)
|
||||
return true;
|
||||
return (flags & AREA_FLAG_SANCTUARY);
|
||||
}
|
||||
@@ -1369,7 +1370,7 @@ struct MapEntry
|
||||
|
||||
[[nodiscard]] bool IsContinent() const
|
||||
{
|
||||
return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571;
|
||||
return MapID == MAP_EASTERN_KINGDOMS || MapID == MAP_KALIMDOR || MapID == MAP_OUTLAND || MapID == MAP_NORTHREND;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool IsDynamicDifficultyMap() const { return Flags & MAP_FLAG_DYNAMIC_DIFFICULTY; }
|
||||
|
||||
Reference in New Issue
Block a user