Fix mounts in Arena's/BGs
--HG-- branch : trunk
This commit is contained in:
@@ -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
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user