summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorAttacker.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
commitabf87d7922ea9fde6720d26a67e2b8460690a3f3 (patch)
treeaf431d7b6879e71243a6ad6c9aefa9f0ec80c1b1 /src/Mobs/Behaviors/BehaviorAttacker.cpp
parentLambda merge fix (diff)
downloadcuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.gz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.bz2
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.lz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.xz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.zst
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.zip
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAttacker.cpp')
-rw-r--r--src/Mobs/Behaviors/BehaviorAttacker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttacker.cpp b/src/Mobs/Behaviors/BehaviorAttacker.cpp
index 2f25bd3aa..280914f09 100644
--- a/src/Mobs/Behaviors/BehaviorAttacker.cpp
+++ b/src/Mobs/Behaviors/BehaviorAttacker.cpp
@@ -99,6 +99,7 @@ void cBehaviorAttacker::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
if (TargetIsInStrikeRadiusAndLineOfSight())
{
+ m_Parent->StopMovingToPosition();
StrikeTargetIfReady();
}
else