diff options
author | megamage <none@none> | 2009-08-21 21:53:58 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-21 21:53:58 -0500 |
commit | 9897816944a58d4387d9c5adec62ea3db03824d9 (patch) | |
tree | 5b85891cc875e4c44d0326dc8fd238ca871ac2bd /src/game/SpellMgr.cpp | |
parent | a230fdb1369ad61c3687d2faae03aec6c3f09ef2 (diff) |
*Do not allow to use flying mount in wintergrasp.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index f92876f328e..01840cf5842 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2691,6 +2691,12 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell } } + // wintergrasp + if(zone_id == 4197) + for(uint32 i = 0; i < 3; ++i) + if(spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) + return SPELL_FAILED_INCORRECT_AREA; + return SPELL_CAST_OK; } |