diff options
author | Haru <haru@dotalux.com> | 2018-11-21 04:35:51 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-11-21 04:35:51 +0100 |
commit | c34871cb3f65412db663a4793df6f055663e16fa (patch) | |
tree | e1d22f16d831662d6d7f9d676647f70890d88cbc /src | |
parent | 5e37ad2204e8d3fc3069cfa96fe9739685f2f7a0 (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/status.c | 2 |
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 */ |