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.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 78a2fc0e5..b4ab52ba8 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -496,4 +496,19 @@ impHandler(addAttack)
return true;
}
+impHandler(removeAttack)
+{
+ if (!actorManager || event.args.empty()
+ || !actorManager->isInAttackList(event.args))
+ {
+ return false;
+ }
+
+ actorManager->removeAttackMob(event.args);
+
+ if (socialWindow)
+ socialWindow->updateAttackFilter();
+ return true;
+}
+
} // namespace Actions