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
+1 -1
View File
@@ -149,7 +149,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
} }
} }
bool allowMount = !mEntry->IsDungeon(); bool allowMount = !mEntry->IsDungeon() || mEntry->IsBattleGroundOrArena();
if (mInstance) if (mInstance)
{ {
Difficulty diff = GetPlayer()->GetDifficulty(mEntry->IsRaid()); Difficulty diff = GetPlayer()->GetDifficulty(mEntry->IsRaid());
+1 -1
View File
@@ -5315,7 +5315,7 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_NO_MOUNTS_ALLOWED; return SPELL_FAILED_NO_MOUNTS_ALLOWED;
// Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells // 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()); InstanceTemplate const *it = objmgr.GetInstanceTemplate(m_caster->GetMapId());
if (it) if (it)
AllowMount = it->allowMount; AllowMount = it->allowMount;