aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-15 17:12:59 -0600
committermegamage <none@none>2009-03-15 17:12:59 -0600
commit681d1d171e2ec2e2e61e4447eeb580845288d82a (patch)
tree098935e9bd69fcce51af36d5adbf1087a3761f8e
parente8fcd81e266ed66a4eb27b774bf05c58ab13feb3 (diff)
*Do not call AttackStop() when switching target.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp7
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