Core/Misc: Create new enum for AreaIds
Port From (https://github.com/TrinityCore/TrinityCore/commit/60b48ad0467c4578d9944e53d9c55ed4b970a4ec)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user