Core/Maps: Split Ebon Hold and Exile's reach by faction and removed forced sanctuary hack

Port From (https://github.com/TrinityCore/TrinityCore/commit/515c0a43ef8fcf41ffb2785c5940f0234e757ec3)
This commit is contained in:
hondacrx
2022-07-25 22:25:09 -04:00
parent a3bd0f274a
commit 888fd11477
4 changed files with 45 additions and 6 deletions
@@ -147,9 +147,6 @@ namespace Game.DataStorage
public bool IsSanctuary()
{
if (ContinentID == 609)
return true;
return HasFlag(AreaFlags.Sanctuary);
}
+17 -1
View File
@@ -86,11 +86,27 @@ namespace Game.DataStorage
public bool IsContinent()
{
return Id == 0 || Id == 1 || Id == 530 || Id == 571 || Id == 870 || Id == 1116 || Id == 1220;
switch (Id)
{
case 0:
case 1:
case 530:
case 571:
case 870:
case 1116:
case 1220:
case 1642:
case 1643:
case 2222:
return true;
default:
return false;
}
}
public bool IsDynamicDifficultyMap() { return (Flags[0] & MapFlags.CanToggleDifficulty) != 0; }
public bool IsGarrison() { return (Flags[0] & MapFlags.Garrison) != 0; }
public bool IsSplitByFaction() { return Id == 609 || Id == 2175; }
}
public sealed class MapChallengeModeRecord