summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-08 18:50:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-08 18:50:05 +0300
commita4db54793c6aa1b3684b5b46cd95d32fdef6a965 (patch)
tree437fc0a3c1cd74723c24f2588f4502b59f6942cd /src
parente194af21d615edfed4bd625b509e8cc03a788cdf (diff)
downloadmv-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.gz
mv-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.bz2
mv-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.tar.xz
mv-a4db54793c6aa1b3684b5b46cd95d32fdef6a965.zip
Remove handler "add attack" from popup menu.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 52e3e021a..0637cda3a 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -295,7 +295,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to priotiry attack list
_("Add to priority attack list"));
- mBrowserBox->addRow("add attack",
+ mBrowserBox->addRow("/addattack 'NAME'",
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to attack list
_("Add to attack list"));
@@ -1107,15 +1107,6 @@ void PopupMenu::handleLink(const std::string &link,
{
NpcDialog::copyToClipboard(mBeingId, mX, mY);
}
- else if (link == "add attack" && being)
- {
- if (actorManager && being->getType() == ActorType::Monster)
- {
- actorManager->addAttackMob(being->getName());
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
else if (link == "add attack priority" && being)
{
if (actorManager && being->getType() == ActorType::Monster)