summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-11-21 04:35:51 +0100
committerHaru <haru@dotalux.com>2018-11-21 04:35:51 +0100
commitc34871cb3f65412db663a4793df6f055663e16fa (patch)
treee1d22f16d831662d6d7f9d676647f70890d88cbc /src/map/status.c
parent5e37ad2204e8d3fc3069cfa96fe9739685f2f7a0 (diff)
downloadhercules-c34871cb3f65412db663a4793df6f055663e16fa.tar.gz
hercules-c34871cb3f65412db663a4793df6f055663e16fa.tar.bz2
hercules-c34871cb3f65412db663a4793df6f055663e16fa.tar.xz
hercules-c34871cb3f65412db663a4793df6f055663e16fa.zip
Fix a regression that prevented characters from being resurrected
Caused by a wrong check in 8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index edcdd515d..75744c59b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1557,7 +1557,7 @@ static int status_heal(struct block_list *bl, int64 in_hp, int64 in_sp, enum sta
if (st == &status->dummy)
return 0;
- if (st->hp == 0 && (flag & STATUS_HEAL_ALLOWREVIVE) != 0)
+ if (st->hp == 0 && (flag & STATUS_HEAL_ALLOWREVIVE) == 0)
return 0;
/* From here onwards, we consider it a 32-type as the client does not support higher and the value doesn't get through percentage modifiers */