aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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