diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-26 04:01:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-26 04:01:54 +0300 |
commit | dc21556d658a1006c35ddf7acc95c71d9340eec4 (patch) | |
tree | 0f05ead724c9379c724fecd89cbdbfd7b7881694 | |
parent | 40229b548734a68163bb28bd376e0b80d6fe43b9 (diff) | |
download | manaplus-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.
-rw-r--r-- | src/actions/commands.cpp | 4 |
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; } |