summaryrefslogtreecommitdiff
path: root/src/map/status.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-04-22 21:02:00 +0200
committerHaru <haru@dotalux.com>2018-11-14 18:44:19 +0100
commit8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a (patch)
tree12f538ec393399874eedc24724281b2980c59dc8 /src/map/status.h
parent9ae4b5ad26029f8056635a6112828d87dc671184 (diff)
downloadhercules-8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a.tar.gz
hercules-8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a.tar.bz2
hercules-8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a.tar.xz
hercules-8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a.zip
Extend status->heal() with a flag to allow reviving a dead character
This adds `STATUS_HEAL_ALLOWREVIVE` to `enum status_heal_flag`. Fixes an issue caused by a hack in the resurrection code, that would make characters respawn with 2 HP instead of 1. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.h')
-rw-r--r--src/map/status.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/status.h b/src/map/status.h
index 35721c46a..d6a5c2002 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -106,6 +106,7 @@ enum status_heal_flag {
STATUS_HEAL_DEFAULT = 0x00, ///< Default
STATUS_HEAL_FORCED = 0x01, ///< Forced healing (bypassing Berserk and similar)
STATUS_HEAL_SHOWEFFECT = 0x02, ///< Show the HP/SP heal effect
+ STATUS_HEAL_ALLOWREVIVE = 0x04, ///< Force resurrection in case of dead targets.
};
// Status changes listing. These code are for use by the server.