From ac2cda962d5fc3e23858527be45a8ae7b9856b84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 21:39:27 +0300 Subject: Move chat command /addpriorityattack into actions. --- src/actions/commands.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/actions/commands.cpp') 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 -- cgit v1.2.3-60-g2f50