summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-06-05 20:34:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-25 21:38:30 +0300
commitf67a60ea6108e2c70186bf4742c223179ac5f4be (patch)
treec057d9dc5a8c9716b24b5ba2dc4cb576832ee1dc /src/actions/actions.cpp
parent760b544fb26dcfc5103a44bf977cd8cd95b0862a (diff)
downloadmanaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.gz
manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.bz2
manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.xz
manaplus-f67a60ea6108e2c70186bf4742c223179ac5f4be.zip
add targetingType feature
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index a8d21367e..a4520543c 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -807,12 +807,12 @@ impHandler(targetAttack)
target = nullptr;
}
}
- if (!target)
+
+ if (!target && !settings.targetingType)
target = localPlayer->getTarget();
- // A set target has highest priority
+
if (!target)
{
- // Only auto target Monsters
target = actorManager->findNearestLivingBeing(
localPlayer, 90, ActorType::Monster, AllowSort_true);
}