From 8c53409bb625415ddc6fe131061c7e540d56a67e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 21:47:16 +0300 Subject: Move chat command /removeattack into actions. --- src/actions/commands.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/actions/commands.cpp') 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 -- cgit v1.2.3-70-g09d2