diff options
author | Haru <haru@dotalux.com> | 2018-11-14 19:35:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 19:35:02 +0100 |
commit | 9f77ce4b9702b1efe079ef9b1abe491482690850 (patch) | |
tree | 0a5191147d24ca56b60ca01dac71801974a1a8ce /src/map/atcommand.c | |
parent | 1c315c13f048dc44c5b002ca39095b18d212b9c5 (diff) | |
parent | 8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a (diff) | |
download | hercules-9f77ce4b9702b1efe079ef9b1abe491482690850.tar.gz hercules-9f77ce4b9702b1efe079ef9b1abe491482690850.tar.bz2 hercules-9f77ce4b9702b1efe079ef9b1abe491482690850.tar.xz hercules-9f77ce4b9702b1efe079ef9b1abe491482690850.zip |
Merge pull request #1215 from HerculesWS/HP_Display
Fixes #889 & #840
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); } |