From 94e909f4ae557eea6f2cc7737d14c46968920b18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 21 Sep 2014 17:52:18 +0300 Subject: Add action for targetting mercenaries. New chat command: targetmercenary --- src/actions/target.cpp | 5 +++++ src/actions/target.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src/actions') diff --git a/src/actions/target.cpp b/src/actions/target.cpp index c4c314ddb..95cb6ebbb 100644 --- a/src/actions/target.cpp +++ b/src/actions/target.cpp @@ -66,4 +66,9 @@ impHandler0(targetNPC) return setTarget(ActorType::Npc, true); } +impHandler0(targetMercenary) +{ + return setTarget(ActorType::Mercenary, true); +} + } // namespace Actions diff --git a/src/actions/target.h b/src/actions/target.h index 529f339ce..0bb760835 100644 --- a/src/actions/target.h +++ b/src/actions/target.h @@ -31,6 +31,7 @@ namespace Actions decHandler(targetMonster); decHandler(targetClosestMonster); decHandler(targetNPC); + decHandler(targetMercenary); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2