summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-24 22:49:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-24 22:49:20 +0300
commit84d56b88a03054d35b84dc1ecbd7ad4614f8ac86 (patch)
treea6de73a2a93ac287413917c1ba540dff6f65da5d /src/commands.cpp
parent0a4da74459471686e153b600253f12706d0ce8de (diff)
downloadmv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.gz
mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.bz2
mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.tar.xz
mv-84d56b88a03054d35b84dc1ecbd7ad4614f8ac86.zip
Add new action for select closest monster without filters and sorting.
By default unassigned.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp6
1 files changed, 3 insertions, 3 deletions
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, "<PLAYER>", 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, "<MONSTER>", target->getName());