summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-06 12:32:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-06 12:32:35 +0300
commit51be674df969fbed48503c3482268599e8b3a01b (patch)
tree515bd702f72b5b2e4a1b9ad3a1223e9ec6cef810 /src/actions
parentde11e81f377d27b6dea4f9fca44b43f28f52f04c (diff)
downloadmanaplus-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')
-rw-r--r--src/actions/commands.cpp5
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;
}