diff options
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index b4ab52ba8..80e7493da 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -511,4 +511,17 @@ impHandler(removeAttack) return true; } +impHandler(addIgnoreAttack) +{ + if (!actorManager || actorManager->isInIgnoreAttackList(event.args)) + return false; + + actorManager->removeAttackMob(event.args); + actorManager->addIgnoreAttackMob(event.args); + + if (socialWindow) + socialWindow->updateAttackFilter(); + return true; +} + } // namespace Actions |