summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-21 17:52:18 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-21 18:03:13 +0300
commit94e909f4ae557eea6f2cc7737d14c46968920b18 (patch)
tree76639ed4f19a3c42cdd593f33532b1f7e9ac61fd /src/actions
parentd26b49843ee33ca927cc46edc8cc0bdfe97a903a (diff)
downloadplus-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.gz
plus-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.bz2
plus-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.xz
plus-94e909f4ae557eea6f2cc7737d14c46968920b18.zip
Add action for targetting mercenaries.
New chat command: targetmercenary
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/target.cpp5
-rw-r--r--src/actions/target.h1
2 files changed, 6 insertions, 0 deletions
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