Fix mounts in Arena's/BGs

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-03-21 19:12:04 +01:00
parent 4a7b208eab
commit a4e98f50d0
2 changed files with 2 additions and 2 deletions

View File

@@ -5315,7 +5315,7 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_NO_MOUNTS_ALLOWED;
// Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells
bool AllowMount = !m_caster->GetMap()->IsDungeon();
bool AllowMount = !m_caster->GetMap()->IsDungeon() || m_caster->GetMap()->IsBattleGroundOrArena();
InstanceTemplate const *it = objmgr.GetInstanceTemplate(m_caster->GetMapId());
if (it)
AllowMount = it->allowMount;