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 GitHub
parent 5800cd8248
commit b20912c8f6

View File

@@ -5498,7 +5498,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