diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-06 12:32:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-06 12:32:35 +0300 |
commit | 51be674df969fbed48503c3482268599e8b3a01b (patch) | |
tree | 515bd702f72b5b2e4a1b9ad3a1223e9ec6cef810 /src/actions/commands.cpp | |
parent | de11e81f377d27b6dea4f9fca44b43f28f52f04c (diff) | |
download | manaplus-51be674df969fbed48503c3482268599e8b3a01b.tar.gz manaplus-51be674df969fbed48503c3482268599e8b3a01b.tar.bz2 manaplus-51be674df969fbed48503c3482268599e8b3a01b.tar.xz manaplus-51be674df969fbed48503c3482268599e8b3a01b.zip |
Fix remove from priority attack list.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 9b3b2aca2..c74c2397a 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -568,8 +568,9 @@ impHandler(addAttack) impHandler(removeAttack) { - if (!actorManager || event.args.empty() - || !actorManager->isInIgnoreAttackList(event.args)) + if (!actorManager || event.args.empty() || ( + !actorManager->isInIgnoreAttackList(event.args) && + !actorManager->isInPriorityAttackList(event.args))) { return false; } |