diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-11 00:08:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-11 00:08:59 +0300 |
commit | 12433d426970de3d7785a5b77908f74ed5fd7093 (patch) | |
tree | a15c2b692f1b95c8e2f01bfe1e3e18d796c78bd4 /src/actions/commands.cpp | |
parent | a640418f26f4fd38fe55671120dd643f30d52273 (diff) | |
download | plus-12433d426970de3d7785a5b77908f74ed5fd7093.tar.gz plus-12433d426970de3d7785a5b77908f74ed5fd7093.tar.bz2 plus-12433d426970de3d7785a5b77908f74ed5fd7093.tar.xz plus-12433d426970de3d7785a5b77908f74ed5fd7093.zip |
Fix "remove monster from attack" list.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 95be13364..bb43e2a9d 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -581,8 +581,8 @@ impHandler(wait) impHandler(addPriorityAttack) { - if (!actorManager - || actorManager->isInPriorityAttackList(event.args)) + if (!actorManager || + actorManager->isInPriorityAttackList(event.args)) { return false; } @@ -610,9 +610,9 @@ impHandler(addAttack) impHandler(removeAttack) { - if (!actorManager || event.args.empty() || ( - !actorManager->isInIgnoreAttackList(event.args) && - !actorManager->isInPriorityAttackList(event.args))) + if (!actorManager || + event.args.empty() || + !actorManager->isInAttackList(event.args)) { return false; } |