- 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://svn.code.sf.net/p/rathena/svn/trunk@7654 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-07-13 13:55:58 +00:00
parent b505f07a7a
commit 6ec9580e34
3 changed files with 34 additions and 46 deletions

View File

@@ -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;