summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-09 16:56:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-09 17:01:31 +0300
commit8071fcbf88095bcaf54742062a4ebde87a801fd0 (patch)
treef40dd9a936e105dcbbb28a5a519889264ad86f52 /src/actions
parent53bcb5fd2f680d9a3be9f56e5fab420d83746b00 (diff)
downloadplus-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.gz
plus-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.bz2
plus-8071fcbf88095bcaf54742062a4ebde87a801fd0.tar.xz
plus-8071fcbf88095bcaf54742062a4ebde87a801fd0.zip
Allow select skill units and attack it.
Also add key for select skill unit.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/target.cpp9
-rw-r--r--src/actions/target.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/target.cpp b/src/actions/target.cpp
index 7817ac8e5..f4a177b5d 100644
--- a/src/actions/target.cpp
+++ b/src/actions/target.cpp
@@ -67,6 +67,15 @@ impHandler0(targetMercenary)
#endif
}
+impHandler0(targetSkillUnit)
+{
+#ifdef EATHENA_SUPPORT
+ return setTarget(ActorType::SkillUnit, AllowSort_true);
+#else
+ return false;
+#endif
+}
+
impHandler0(targetPet)
{
#ifdef EATHENA_SUPPORT
diff --git a/src/actions/target.h b/src/actions/target.h
index a1ca2e22b..954fcd195 100644
--- a/src/actions/target.h
+++ b/src/actions/target.h
@@ -33,6 +33,7 @@ namespace Actions
decHandler(targetNPC);
decHandler(targetMercenary);
decHandler(targetPet);
+ decHandler(targetSkillUnit);
decHandler(contextMenu);
} // namespace Actions