summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 717c7df09..ab45786e1 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -467,4 +467,20 @@ impHandler(wait)
return false;
}
+impHandler(addPriorityAttack)
+{
+ if (!actorManager
+ || actorManager->isInPriorityAttackList(event.args))
+ {
+ return false;
+ }
+
+ actorManager->removeAttackMob(event.args);
+ actorManager->addPriorityAttackMob(event.args);
+
+ if (socialWindow)
+ socialWindow->updateAttackFilter();
+ return true;
+}
+
} // namespace Actions