summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-08 19:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-08 19:19:02 +0300
commit5d3feac465403781493191fc2d3ee777f5cff933 (patch)
treedf8c4f83bfe0e1f44f16309e148f71fa27c2f862
parent227afa302670fbd9f9d38df3d2221668e3c9f475 (diff)
downloadplus-5d3feac465403781493191fc2d3ee777f5cff933.tar.gz
plus-5d3feac465403781493191fc2d3ee777f5cff933.tar.bz2
plus-5d3feac465403781493191fc2d3ee777f5cff933.tar.xz
plus-5d3feac465403781493191fc2d3ee777f5cff933.zip
Remove handler "add attack ignore" from popup menu.
-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 45236a727..7bfa4afea 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -299,7 +299,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to attack list
_("Add to attack list"));
- mBrowserBox->addRow("add attack ignore",
+ mBrowserBox->addRow("/addignoreattack 'NAME'",
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to ignore list
_("Add to ignore list"));
@@ -1107,15 +1107,6 @@ void PopupMenu::handleLink(const std::string &link,
{
NpcDialog::copyToClipboard(mBeingId, mX, mY);
}
- else if (link == "add attack ignore" && being)
- {
- if (actorManager && being->getType() == ActorType::Monster)
- {
- actorManager->addIgnoreAttackMob(being->getName());
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
else if (link == "remove pickup" && !mNick.empty())
{
if (actorManager)