diff options
author | Haru <haru@dotalux.com> | 2018-04-08 18:39:33 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-11-14 18:44:17 +0100 |
commit | cd634fbcefaa36bb9d05b0be071f8f23d408ea26 (patch) | |
tree | ee77b7469d8525bd6472a3d0931accfbee0ec7a9 /src/map/atcommand.c | |
parent | 86b70dc7ea0a6d3aee6d99a0f802668fc9a0eb75 (diff) | |
download | hercules-cd634fbcefaa36bb9d05b0be071f8f23d408ea26.tar.gz hercules-cd634fbcefaa36bb9d05b0be071f8f23d408ea26.tar.bz2 hercules-cd634fbcefaa36bb9d05b0be071f8f23d408ea26.tar.xz hercules-cd634fbcefaa36bb9d05b0be071f8f23d408ea26.zip |
Use an enum as flag for status->heal() and related functions
This introduces the `enum status_heal_flag`. No functional changes are
made.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 236975b32..c8cca2aea 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -1131,7 +1131,7 @@ ACMD(heal) } if ( hp > 0 && sp >= 0 ) { - if(!status->heal(&sd->bl, hp, sp, 0)) + if (status->heal(&sd->bl, hp, sp, STATUS_HEAL_DEFAULT) == 0) clif->message(fd, msg_fd(fd,157)); // HP and SP are already with the good value. else clif->message(fd, msg_fd(fd,17)); // HP, SP recovered. @@ -1148,7 +1148,7 @@ ACMD(heal) //Opposing signs. if ( hp ) { if (hp > 0) - status->heal(&sd->bl, hp, 0, 0); + status->heal(&sd->bl, hp, 0, STATUS_HEAL_DEFAULT); else { status->damage(NULL, &sd->bl, -hp, 0, 0, 0); clif->damage(&sd->bl,&sd->bl, 0, 0, -hp, 0, BDT_ENDURE, 0); @@ -1157,7 +1157,7 @@ ACMD(heal) if ( sp ) { if (sp > 0) - status->heal(&sd->bl, 0, sp, 0); + status->heal(&sd->bl, 0, sp, STATUS_HEAL_DEFAULT); else status->damage(NULL, &sd->bl, 0, -sp, 0, 0); } |