summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-26 04:01:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-26 04:01:54 +0300
commitdc21556d658a1006c35ddf7acc95c71d9340eec4 (patch)
tree0f05ead724c9379c724fecd89cbdbfd7b7881694 /src/actions/commands.cpp
parent40229b548734a68163bb28bd376e0b80d6fe43b9 (diff)
downloadmanaplus-dc21556d658a1006c35ddf7acc95c71d9340eec4.tar.gz
manaplus-dc21556d658a1006c35ddf7acc95c71d9340eec4.tar.bz2
manaplus-dc21556d658a1006c35ddf7acc95c71d9340eec4.tar.xz
manaplus-dc21556d658a1006c35ddf7acc95c71d9340eec4.zip
Add context menu and chat command for remove monster from different attack lists.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 2cfe01720..a87db0a16 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -612,7 +612,9 @@ impHandler(removeAttack)
{
if (!actorManager ||
event.args.empty() ||
- !actorManager->isInAttackList(event.args))
+ (!actorManager->isInAttackList(event.args) &&
+ !actorManager->isInPriorityAttackList(event.args) &&
+ !actorManager->isInIgnoreAttackList(event.args)))
{
return false;
}