diff options
-rw-r--r-- | src/actorspritemanager.cpp | 5 |
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)); |