*Fix a bug that druid's flight form is not removed after entering wintergrasp.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-09-04 09:36:38 -05:00
parent 370be1de8e
commit 596d1714d4

View File

@@ -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;