summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-03 01:55:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-03 01:55:26 +0300
commit65b76728338b824336378b60ed281f39a084eb82 (patch)
treef6fade4d48b5a9968265bbac5c8d286a7b31e0bd /src/actorspritemanager.cpp
parent2596c142137a45d88a65431956436b9a5d466859 (diff)
downloadmanaverse-65b76728338b824336378b60ed281f39a084eb82.tar.gz
manaverse-65b76728338b824336378b60ed281f39a084eb82.tar.bz2
manaverse-65b76728338b824336378b60ed281f39a084eb82.tar.xz
manaverse-65b76728338b824336378b60ed281f39a084eb82.zip
Fix targeting npc in archer move to target.
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));