From b2599f6595558840632bbabf4f91692900536d65 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 21:17:46 -0400 Subject: make SP::HP use pc_heal in pc_setparam --- src/map/pc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 6057278..05f61ea 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3710,8 +3710,7 @@ int pc_setparam(dumb_ptr bl, SP type, int val) case SP::HP: nullpo_retz(sd); // TODO: mob mutation - sd->status.hp = val; - clif_updatestatus(sd, type); + pc_heal(sd, (val - sd->status.hp), 0); break; case SP::MAXHP: nullpo_retz(sd); -- cgit v1.2.3-60-g2f50