summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-23 15:02:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-23 15:02:35 +0300
commite07a6a1cb8cd414f0b0a8de21903cd621582a906 (patch)
tree5058fbac6ee8d57a794cd32b5e93798d8818b406 /src/actions
parentab5e3e053a31efdc5799c1239e2bceaacf7cff61 (diff)
downloadmanaplus-e07a6a1cb8cd414f0b0a8de21903cd621582a906.tar.gz
manaplus-e07a6a1cb8cd414f0b0a8de21903cd621582a906.tar.bz2
manaplus-e07a6a1cb8cd414f0b0a8de21903cd621582a906.tar.xz
manaplus-e07a6a1cb8cd414f0b0a8de21903cd621582a906.zip
Add action for targetting pets.
New chat command: targetpet
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 95cb6ebbb..8212a3a97 100644
--- a/src/actions/target.cpp
+++ b/src/actions/target.cpp
@@ -71,4 +71,9 @@ impHandler0(targetMercenary)
return setTarget(ActorType::Mercenary, true);
}
+impHandler0(targetPet)
+{
+ return setTarget(ActorType::Pet, true);
+}
+
} // namespace Actions
diff --git a/src/actions/target.h b/src/actions/target.h
index 0bb760835..50ac1e63e 100644
--- a/src/actions/target.h
+++ b/src/actions/target.h
@@ -32,6 +32,7 @@ namespace Actions
decHandler(targetClosestMonster);
decHandler(targetNPC);
decHandler(targetMercenary);
+ decHandler(targetPet);
} // namespace Actions
#undef decHandler