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 ab45786e1..78a2fc0e5 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -483,4 +483,17 @@ impHandler(addPriorityAttack) return true; } +impHandler(addAttack) +{ + if (!actorManager || actorManager->isInAttackList(event.args)) + return false; + + actorManager->removeAttackMob(event.args); + actorManager->addAttackMob(event.args); + + if (socialWindow) + socialWindow->updateAttackFilter(); + return true; +} + } // namespace Actions |