summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-02-17 21:47:01 +0200
committerAndrei Karas <akaras@inbox.ru>2015-02-18 00:27:16 +0300
commit16b5c64933bf29d8e56e0d989ebab18ddae143a8 (patch)
tree47c04e88add47a5198a9f057930687f83afeb056 /src/actions/actions.cpp
parent0d355e3126ab7e0a88bd8e54ce724498f6828c01 (diff)
downloadmanaverse-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.gz
manaverse-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.bz2
manaverse-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.xz
manaverse-16b5c64933bf29d8e56e0d989ebab18ddae143a8.zip
Add key to heal most damaged player
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 1e70a6540..965702539 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -512,6 +512,21 @@ impHandler(heal)
return false;
}
+impHandler0(healmd)
+{
+ if (actorManager)
+ {
+ Being *target = actorManager->findMostDamagedPlayer();
+ if (target)
+ actorManager->heal(target);
+
+ if (Game::instance())
+ Game::instance()->setValidSpeed();
+ return true;
+ }
+ return false;
+}
+
impHandler0(itenplz)
{
if (actorManager)