From 681d1d171e2ec2e2e61e4447eeb580845288d82a Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 15 Mar 2009 17:12:59 -0600 Subject: *Do not call AttackStop() when switching target. --HG-- branch : trunk --- src/game/Unit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3