aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellInfo.cpp
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-06-22 16:09:24 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-06 23:42:15 +0100
commit60b48ad0467c4578d9944e53d9c55ed4b970a4ec (patch)
tree61582adfcc0267ab97abc97e8eaa5f2924e47524 /src/server/game/Spells/SpellInfo.cpp
parentbde36062b7a0bf621086e73a5d419cd8637e9e96 (diff)
Core/Misc: Create new enum for AreaIds
Move Wintergrasp BF related values there (cherry picked from commit 6a8c12587eef47722f6c845f477e0ca66e9ccd1e)
Diffstat (limited to 'src/server/game/Spells/SpellInfo.cpp')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index 7ac1e900388..706859ad8a0 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -2009,7 +2009,7 @@ SpellCastResult SpellInfo::CheckLocation(uint32 map_id, uint32 zone_id, uint32 a
if (!mapEntry)
return SPELL_FAILED_INCORRECT_AREA;
- return zone_id == 4197 || (mapEntry->IsBattleground() && player && player->InBattleground()) ? SPELL_CAST_OK : SPELL_FAILED_REQUIRES_AREA;
+ return zone_id == AREA_WINTERGRASP || (mapEntry->IsBattleground() && player && player->InBattleground()) ? SPELL_CAST_OK : SPELL_FAILED_REQUIRES_AREA;
}
case 44521: // Preparation
{