diff options
| author | Carbenium <carbenium@outlook.com> | 2020-06-22 16:09:24 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-01-06 23:42:15 +0100 |
| commit | 60b48ad0467c4578d9944e53d9c55ed4b970a4ec (patch) | |
| tree | 61582adfcc0267ab97abc97e8eaa5f2924e47524 /src/server/game/Spells/SpellInfo.cpp | |
| parent | bde36062b7a0bf621086e73a5d419cd8637e9e96 (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.cpp | 2 |
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 { |
