Core/Spell: allow use of ground mounts while swimming (#17488)

This commit is contained in:
SnapperRy
2016-07-05 03:11:21 +02:00
committed by Aokromes
parent 0f5b2fd792
commit 5ce8886050

View File

@@ -5571,7 +5571,7 @@ SpellCastResult Spell::CheckCast(bool strict)
}
case SPELL_AURA_MOUNTED:
{
if (m_caster->IsInWater())
if (m_caster->IsInWater() && m_spellInfo->HasAura(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED))
return SPELL_FAILED_ONLY_ABOVEWATER;
// Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells