Core/Misc: Create new enum for AreaIds

Port From (https://github.com/TrinityCore/TrinityCore/commit/60b48ad0467c4578d9944e53d9c55ed4b970a4ec)
This commit is contained in:
hondacrx
2022-02-23 16:45:12 -05:00
parent 43726e7da0
commit 3c6e9e7795
6 changed files with 28 additions and 29 deletions
+1 -1
View File
@@ -6289,7 +6289,7 @@ namespace Game.Entities
if (bg.GetTypeID(true) == BattlegroundTypeId.AV)
loot.FillLoot(SharedConst.PlayerCorpseLootEntry, LootStorage.Creature, this, true);
}
else if (GetZoneId() == WintergraspAreaIds.Wintergrasp)
else if (GetZoneId() == (uint)AreaId.Wintergrasp)
loot.FillLoot(SharedConst.PlayerCorpseLootEntry, LootStorage.Creature, this, true);
// It may need a better formula
+1 -1
View File
@@ -3432,7 +3432,7 @@ namespace Game.Entities
bg.FillInitialWorldStates(packet);
break;
// Wintergrasp
case 4197:
case (uint)AreaId.Wintergrasp:
if (bf != null && bf.GetTypeId() == (uint)BattleFieldTypes.WinterGrasp)
bf.FillInitialWorldStates(packet);
goto default;