diff options
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 4e4cf0655..c94775921 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -23,6 +23,7 @@ #include "actormanager.h" #include "configuration.h" +#include "settings.h" #include "main.h" #include "being/attributes.h" @@ -877,7 +878,7 @@ Being *ActorManager::findNearestLivingBeing(const Being *const aroundBeing, const int attackRange = player_node->getAttackRange(); bool specialDistance = false; - if (player_node->getMoveToTargetType() == 7 + if (settings.moveToTargetType == 7 && player_node->getAttackRange() > 2) { specialDistance = true; |