mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8784] Use more appropriate error for cast fail on taxi flight.
This commit is contained in:
parent
a34d1509ad
commit
34dab079c4
2 changed files with 2 additions and 2 deletions
|
|
@ -4103,7 +4103,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
!IsPassiveSpell(m_spellInfo->Id) && !(m_spellInfo->Attributes & SPELL_ATTR_CASTABLE_WHILE_MOUNTED))
|
||||
{
|
||||
if (m_caster->isInFlight())
|
||||
return SPELL_FAILED_NOT_FLYING;
|
||||
return SPELL_FAILED_NOT_ON_TAXI;
|
||||
else
|
||||
return SPELL_FAILED_NOT_MOUNTED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue