[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) if (m_caster->GetTypeId() == TYPEID_PLAYER)
{ {
// check if player has jumped before the channeling finished // 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(); cancel();
// check for incapacitating player states // check for incapacitating player states

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "12644" #define REVISION_NR "12645"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__