Core/Spells: added a missing check in Unit::IsMovementPreventedByCasting
This commit is contained in:
1 parent
af71a8c9c1
commit
7d67f10f77
1 file changed
+4
@@ -2894,6 +2894,10 @@ bool Unit::IsMovementPreventedByCasting() const
|
||||
if (!HasUnitState(UNIT_STATE_CASTING))
|
||||
return false;
|
||||
|
||||
if (Spell* spell = m_currentSpells[CURRENT_GENERIC_SPELL])
|
||||
if (HasAuraTypeWithAffectMask(SPELL_AURA_CAST_WHILE_WALKING, spell->GetSpellInfo()))
|
||||
return false;
|
||||
|
||||
// channeled spells during channel stage (after the initial cast timer) allow movement with a specific spell attribute
|
||||
if (Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
|
||||
if (spell->getState() != SPELL_STATE_FINISHED && spell->IsChannelActive())
|
||||
|
||||
Reference in new issue
Block a user