From 9897816944a58d4387d9c5adec62ea3db03824d9 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 21 Aug 2009 21:53:58 -0500 Subject: [PATCH] *Do not allow to use flying mount in wintergrasp. --HG-- branch : trunk --- src/game/SpellMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index f92876f328..01840cf584 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; }