diff options
author | megamage <none@none> | 2009-03-15 17:12:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-15 17:12:59 -0600 |
commit | 681d1d171e2ec2e2e61e4447eeb580845288d82a (patch) | |
tree | 098935e9bd69fcce51af36d5adbf1087a3761f8e | |
parent | e8fcd81e266ed66a4eb27b774bf05c58ab13feb3 (diff) |
*Do not call AttackStop() when switching target.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 86a5880731e..27f11be57ba 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7994,7 +7994,12 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) } return false; } - AttackStop(); + + //switch target + m_attacking->_removeAttacker(this); + InterruptSpell(CURRENT_MELEE_SPELL); + if(!meleeAttack) + clearUnitState(UNIT_STAT_MELEE_ATTACKING); } //Set our target |