summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 19:38:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 20:40:39 +0300
commita4077c474c370275442982965bb174b2e1e59422 (patch)
tree86607326f06bb241cb0245d294b3220eacaba5cc /src/commands.cpp
parent647c1a8b8b02b737b11b1e08af86ecc84f649a81 (diff)
downloadmanaplus-a4077c474c370275442982965bb174b2e1e59422.tar.gz
manaplus-a4077c474c370275442982965bb174b2e1e59422.tar.bz2
manaplus-a4077c474c370275442982965bb174b2e1e59422.tar.xz
manaplus-a4077c474c370275442982965bb174b2e1e59422.zip
Move chat command /attack into actions.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 78ea09576..3c3b1dbe4 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -157,18 +157,6 @@ impHandler(hack)
return true;
}
-impHandler(attack)
-{
- if (!localPlayer || !actorManager)
- return false;
-
- Being *const target = actorManager->findNearestByName(event.args);
- if (target)
- localPlayer->setTarget(target);
- localPlayer->attack2(localPlayer->getTarget(), true);
- return true;
-}
-
impHandler0(dirs)
{
if (!localPlayer || !debugChatTab)