*Do not allow to use flying mount in wintergrasp.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-21 21:53:58 -05:00
parent a230fdb136
commit 9897816944
+6
View File
@@ -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;
}