summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
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);