diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-13 13:55:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-13 13:55:58 +0000 |
commit | ae767a27120e38599f9e8efc4ada221e9840b6cb (patch) | |
tree | 04ae8335b606f2269ce8521431df03bfbc337c27 /src/map/script.c | |
parent | f73f7e4fe1814ab75145ee3984082c3a0b5ad116 (diff) | |
download | hercules-ae767a27120e38599f9e8efc4ada221e9840b6cb.tar.gz hercules-ae767a27120e38599f9e8efc4ada221e9840b6cb.tar.bz2 hercules-ae767a27120e38599f9e8efc4ada221e9840b6cb.tar.xz hercules-ae767a27120e38599f9e8efc4ada221e9840b6cb.zip |
- Fixed the value range checks added by Zido on pc_bonus (some of them were even redundant...)
- Fixed script command "recovery".
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7654 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/map/script.c b/src/map/script.c index c8b83f794..338a987a1 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8815,14 +8815,10 @@ int buildin_recovery(struct script_state *st) for (i = 0; i < users; i++) { sd = all_sd[i]; - sd->status.hp = sd->status.max_hp; - sd->status.sp = sd->status.max_sp; - clif_updatestatus(sd, SP_HP); - clif_updatestatus(sd, SP_SP); - if(pc_isdead(sd)){ - pc_setstand(sd); - clif_resurrection(&sd->bl, 1); - } + if(pc_isdead(sd)) + status_revive(&sd->bl, 100, 100); + else + status_percent_heal(&sd->bl, 100, 100); clif_displaymessage(sd->fd,"You have been recovered!"); } return 0; |