diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-02-17 21:47:01 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-18 00:27:16 +0300 |
commit | 16b5c64933bf29d8e56e0d989ebab18ddae143a8 (patch) | |
tree | 47c04e88add47a5198a9f057930687f83afeb056 /src/actions | |
parent | 0d355e3126ab7e0a88bd8e54ce724498f6828c01 (diff) | |
download | plus-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.gz plus-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.bz2 plus-16b5c64933bf29d8e56e0d989ebab18ddae143a8.tar.xz plus-16b5c64933bf29d8e56e0d989ebab18ddae143a8.zip |
Add key to heal most damaged player
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 15 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
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); |