diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 13 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 14 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 diff --git a/src/actions/commands.h b/src/actions/commands.h index 2008f865b..a1e7b86f9 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -52,6 +52,7 @@ namespace Actions decHandler(info); decHandler(wait); decHandler(addPriorityAttack); + decHandler(addAttack); } // namespace Actions #undef decHandler |