From f23abf81cd21907117bf4edf0d814d8bef950e13 Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Wed, 19 Aug 2015 01:54:34 +0300 Subject: /atkhuman now checks teamId and map pvp flag --- src/actions/actions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/actions/actions.cpp') 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); -- cgit v1.2.3-60-g2f50