mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[c12645] Fix channeling while jumping for SPELL_AURA_ALLOW_CAST_WHILE_MOVING
This commit is contained in:
parent
e690f03fa8
commit
bb2e19caeb
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12644"
|
||||
#define REVISION_NR "12645"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue