summaryrefslogtreecommitdiff
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
parent2596c142137a45d88a65431956436b9a5d466859 (diff)
downloadplus-65b76728338b824336378b60ed281f39a084eb82.tar.gz
plus-65b76728338b824336378b60ed281f39a084eb82.tar.bz2
plus-65b76728338b824336378b60ed281f39a084eb82.tar.xz
plus-65b76728338b824336378b60ed281f39a084eb82.zip
Fix targeting npc in archer move to target.
-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));