diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-03 01:55:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-03 01:55:26 +0300 |
commit | 65b76728338b824336378b60ed281f39a084eb82 (patch) | |
tree | f6fade4d48b5a9968265bbac5c8d286a7b31e0bd /src | |
parent | 2596c142137a45d88a65431956436b9a5d466859 (diff) | |
download | plus-65b76728338b824336378b60ed281f39a084eb82.tar.gz plus-65b76728338b824336378b60ed281f39a084eb82.tar.bz2 plus-65b76728338b824336378b60ed281f39a084eb82.tar.xz plus-65b76728338b824336378b60ed281f39a084eb82.zip |
Fix targeting npc in archer move to target.
Diffstat (limited to 'src')
-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)); |