diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-21 17:52:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-21 18:03:13 +0300 |
commit | 94e909f4ae557eea6f2cc7737d14c46968920b18 (patch) | |
tree | 76639ed4f19a3c42cdd593f33532b1f7e9ac61fd /src/actions | |
parent | d26b49843ee33ca927cc46edc8cc0bdfe97a903a (diff) | |
download | manaverse-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.gz manaverse-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.bz2 manaverse-94e909f4ae557eea6f2cc7737d14c46968920b18.tar.xz manaverse-94e909f4ae557eea6f2cc7737d14c46968920b18.zip |
Add action for targetting mercenaries.
New chat command: targetmercenary
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/target.cpp | 5 | ||||
-rw-r--r-- | src/actions/target.h | 1 |
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 |