Fix mounts in Arena's/BGs

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

No files matched your search

+1 -1
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;