summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 3a8b47aed..155fe05ef 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -939,8 +939,11 @@ Being *ActorSpriteManager::findNearestLivingBeing(Being *aroundBeing,
if (!valid)
continue;
- if (specialDistance && being->getDistance() <= 2)
+ if (specialDistance && being->getDistance() <= 2
+ && being->getType() == Being::MONSTER)
+ {
continue;
+ }
// logger->log("being name:" + being->getName());
// logger->log("index:" + toString(index));