summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-08 19:15:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-08 19:15:54 +0300
commit227afa302670fbd9f9d38df3d2221668e3c9f475 (patch)
treeb841c6870266021b3c76d6d05d6d4bb217030272 /src/gui/popups
parenta4db54793c6aa1b3684b5b46cd95d32fdef6a965 (diff)
downloadmanaplus-227afa302670fbd9f9d38df3d2221668e3c9f475.tar.gz
manaplus-227afa302670fbd9f9d38df3d2221668e3c9f475.tar.bz2
manaplus-227afa302670fbd9f9d38df3d2221668e3c9f475.tar.xz
manaplus-227afa302670fbd9f9d38df3d2221668e3c9f475.zip
Remove handler "add priority attack" from popup menu.
Diffstat (limited to 'src/gui/popups')
-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 0637cda3a..45236a727 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -291,7 +291,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
}
else
{
- mBrowserBox->addRow("add attack priority",
+ mBrowserBox->addRow("/addpriorityattack 'NAME'",
// TRANSLATORS: popup menu item
// TRANSLATORS: add monster to priotiry attack list
_("Add to priority attack list"));
@@ -1107,15 +1107,6 @@ void PopupMenu::handleLink(const std::string &link,
{
NpcDialog::copyToClipboard(mBeingId, mX, mY);
}
- else if (link == "add attack priority" && being)
- {
- if (actorManager && being->getType() == ActorType::Monster)
- {
- actorManager->addPriorityAttackMob(being->getName());
- if (socialWindow)
- socialWindow->updateAttackFilter();
- }
- }
else if (link == "add attack ignore" && being)
{
if (actorManager && being->getType() == ActorType::Monster)