summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-08-19 01:54:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-20 19:04:36 +0300
commitf23abf81cd21907117bf4edf0d814d8bef950e13 (patch)
tree209a9b308a0aebfd26ee7d2aa963a82f1994a1fb /src/actions/actions.cpp
parent2b0936e4eafee4da5e2ff3c0a7b7fd0df8a9f5c4 (diff)
downloadplus-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.gz
plus-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.bz2
plus-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.xz
plus-f23abf81cd21907117bf4edf0d814d8bef950e13.zip
/atkhuman now checks teamId and map pvp flag
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index feba9dcaa..d2fc1c4c8 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -868,8 +868,7 @@ impHandler0(attackHuman)
if (!actorManager || !localPlayer)
return false;
- Being *const target = actorManager->findNearestLivingBeing(
- localPlayer, 10, ActorType::Player, AllowSort_true);
+ Being *const target = actorManager->findNearestPvpPlayer();
if (target)
{
localPlayer->setTarget(target);