diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-06-05 20:34:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 21:38:30 +0300 |
commit | f67a60ea6108e2c70186bf4742c223179ac5f4be (patch) | |
tree | c057d9dc5a8c9716b24b5ba2dc4cb576832ee1dc /src/actions/actions.cpp | |
parent | 760b544fb26dcfc5103a44bf977cd8cd95b0862a (diff) | |
download | ManaVerse-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.gz ManaVerse-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.bz2 ManaVerse-f67a60ea6108e2c70186bf4742c223179ac5f4be.tar.xz ManaVerse-f67a60ea6108e2c70186bf4742c223179ac5f4be.zip |
add targetingType feature
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 6 |
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); } |