From a4db54793c6aa1b3684b5b46cd95d32fdef6a965 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Mar 2015 18:50:05 +0300 Subject: Remove handler "add attack" from popup menu. --- src/gui/popups/popupmenu.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/gui') 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) -- cgit v1.2.3-70-g09d2