From 84d56b88a03054d35b84dc1ecbd7ad4614f8ac86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Jun 2014 22:49:20 +0300 Subject: Add new action for select closest monster without filters and sorting. By default unassigned. --- src/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 6be14ee16..94781aef5 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -677,7 +677,7 @@ impHandler0(attackHuman) return; Being *const target = actorManager->findNearestLivingBeing( - player_node, 10, ActorType::PLAYER); + player_node, 10, ActorType::PLAYER, true); if (target) { if (player_node->checAttackPermissions(target)) @@ -1523,7 +1523,7 @@ void replaceVars(std::string &str) if (!target || target->getType() != ActorType::PLAYER) { target = actorManager->findNearestLivingBeing( - player_node, 20, ActorType::PLAYER); + player_node, 20, ActorType::PLAYER, true); } if (target) replaceAll(str, "", target->getName()); @@ -1536,7 +1536,7 @@ void replaceVars(std::string &str) if (!target || target->getType() != ActorType::MONSTER) { target = actorManager->findNearestLivingBeing( - player_node, 20, ActorType::MONSTER); + player_node, 20, ActorType::MONSTER, true); } if (target) replaceAll(str, "", target->getName()); -- cgit v1.2.3-70-g09d2