Core/Players: Corrected logic determining contested/friendly/hostile area types

Port From (https://github.com/TrinityCore/TrinityCore/commit/0a0fc86b96937315a9fce4ed6f452a4b7298f1af)
This commit is contained in:
hondacrx
2020-10-09 13:50:37 -04:00
parent d40c2938a3
commit 77b08c3fd9
2 changed files with 43 additions and 22 deletions
+6 -1
View File
@@ -898,7 +898,7 @@ namespace Framework.Constants
Town = 0x200000, // Small Towns With Inn
RestZoneHorde = 0x400000, // Warsong Hold, Acherus: The Ebon Hold, New Agamand Inn, Vengeance Landing Inn, Sunreaver Pavilion (Something To Do With Team?)
RestZoneAlliance = 0x800000, // Valgarde, Acherus: The Ebon Hold, Westguard Inn, Silver Covenant Pavilion (Something To Do With Team?)
Wintergrasp = 0x1000000, // Wintergrasp And It'S Subzones
Combat = 0x1000000, // "combat" area (Script_GetZonePVPInfo), used
Inside = 0x2000000, // Used For Determinating Spell Related Inside/Outside Questions In Map.Isoutdoors
Outside = 0x4000000, // Used For Determinating Spell Related Inside/Outside Questions In Map.Isoutdoors
CanHearthAndResurrect = 0x8000000, // Can Hearth And Resurrect From Area
@@ -906,6 +906,11 @@ namespace Framework.Constants
Unk9 = 0x40000000,
}
public enum AreaFlags2
{
DontShowSanctuary = 0x00000200, // Hides sanctuary status from zone text color (Script_GetZonePVPInfo)
}
public enum ArtifactCategory
{
Primary = 1,