fix(Core/Spells): Allow casting ground mounts in water (#17481)
https: //github.com/TrinityCore/TrinityCore/pull/17488 Co-authored-by: SnapperRy <19622383+SnapperRy@users.noreply.github.com>
This commit is contained in:
@@ -6637,8 +6637,8 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
}
|
}
|
||||||
case SPELL_AURA_MOUNTED:
|
case SPELL_AURA_MOUNTED:
|
||||||
{
|
{
|
||||||
// Xinef: disallow casting in water for mounts not increasing water movement Speed
|
// Disallow casting flying mounts in water
|
||||||
if (m_caster->IsInWater() && !m_spellInfo->HasAura(SPELL_AURA_MOD_INCREASE_SWIM_SPEED))
|
if (m_caster->IsInWater() && m_spellInfo->HasAura(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED))
|
||||||
return SPELL_FAILED_ONLY_ABOVEWATER;
|
return SPELL_FAILED_ONLY_ABOVEWATER;
|
||||||
|
|
||||||
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user