aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-09-04 09:36:38 -0500
committermegamage <none@none>2009-09-04 09:36:38 -0500
commit596d1714d45a41befe7e5ebef17cac490b23e407 (patch)
tree183ca0acd986d8b294409072d3f0c46053989a83 /src
parent370be1de8e89628562ee05c3dbb1ed8dec0abb60 (diff)
*Fix a bug that druid's flight form is not removed after entering wintergrasp.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index c60b6d77aed..ed6dee6e210 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2725,7 +2725,8 @@ 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)
+ if(spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED
+ || spellInfo->EffectApplyAuraName[i] == SPELL_AURA_FLY)
return SPELL_FAILED_INCORRECT_AREA;
return SPELL_CAST_OK;