Skip to content

Commit

Permalink
[12626] Improve "NPCs gets stuck in melee animation while casting".
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberium committed Apr 7, 2014
1 parent 218db48 commit ff4734d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/CreatureEventAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
break;
case ACTION_T_COMBAT_MOVEMENT:
// ignore no affect case
if (m_isCombatMovement == (action.combat_movement.state != 0))
if (m_isCombatMovement == (action.combat_movement.state != 0) || m_creature->IsNonMeleeSpellCasted(false))
return;

SetCombatMovement(action.combat_movement.state != 0, true);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12625"
#define REVISION_NR "12626"
#endif // __REVISION_NR_H__

0 comments on commit ff4734d

Please sign in to comment.