aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-03-21 19:12:04 +0100
committerMachiavelli <none@none>2010-03-21 19:12:04 +0100
commita4e98f50d0f18e6ae59145aca31a719ff754c703 (patch)
tree036fef3d0556d39d747be497c6a1d2aa7b2f0412 /src/game/Spell.cpp
parent4a7b208eab94f251fc73456a08037d2b3d3ab67a (diff)
Fix mounts in Arena's/BGs
--HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 6a5b6b0ad10..0f097f12ef4 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -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;