[c12645] Fix channeling while jumping for SPELL_AURA_ALLOW_CAST_WHILE_MOVING

This commit is contained in:
Dramacydal 2013-06-17 10:59:54 +01:00 committed by Antz
parent e690f03fa8
commit bb2e19caeb
2 changed files with 3 additions and 2 deletions

View file

@ -3689,7 +3689,8 @@ void Spell::update(uint32 difftime)
if (m_caster->GetTypeId() == TYPEID_PLAYER)
{
// check if player has jumped before the channeling finished
if (((Player*)m_caster)->m_movementInfo.HasMovementFlag(MOVEFLAG_FALLING))
if (((Player*)m_caster)->m_movementInfo.HasMovementFlag(MOVEFLAG_FALLING) &&
!m_caster->HasAffectedAura(SPELL_AURA_ALLOW_CAST_WHILE_MOVING, m_spellInfo))
cancel();
// check for incapacitating player states