diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-08-19 01:54:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-20 19:04:36 +0300 |
commit | f23abf81cd21907117bf4edf0d814d8bef950e13 (patch) | |
tree | 209a9b308a0aebfd26ee7d2aa963a82f1994a1fb /src/actions/actions.cpp | |
parent | 2b0936e4eafee4da5e2ff3c0a7b7fd0df8a9f5c4 (diff) | |
download | manaverse-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.gz manaverse-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.bz2 manaverse-f23abf81cd21907117bf4edf0d814d8bef950e13.tar.xz manaverse-f23abf81cd21907117bf4edf0d814d8bef950e13.zip |
/atkhuman now checks teamId and map pvp flag
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 3 |
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); |