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
@@ -941,7 +941,7 @@ namespace Game.Spells
if (mapEntry == null)
return SpellCastResult.IncorrectArea;
return zone_id == 4197 || (mapEntry.IsBattleground() && player != null && player.InBattleground()) ? SpellCastResult.SpellCastOk : SpellCastResult.RequiresArea;
return zone_id == (uint)AreaId.Wintergrasp || (mapEntry.IsBattleground() && player != null && player.InBattleground()) ? SpellCastResult.SpellCastOk : SpellCastResult.RequiresArea;
case 44521: // Preparation
{
if (player == null)