summaryrefslogtreecommitdiff
path: root/src/actions
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
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')
-rw-r--r--src/actions/actions.cpp15
-rw-r--r--src/actions/actions.h1
2 files changed, 16 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)
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 17b4900a0..2b32545da 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -42,6 +42,7 @@ namespace Actions
decHandler(dropItemIdAll);
decHandler(dropItemInvAll);
decHandler(heal);
+ decHandler(healmd);
decHandler(itenplz);
decHandler(setHome);
decHandler(magicAttack);