From 8ca20d184f4646e76a8769ff8f72c33f125534c0 Mon Sep 17 00:00:00 2001 From: icxbb-xx Date: Wed, 25 Nov 2015 16:44:16 +0700 Subject: [PATCH] Follow up to 85971d6 * Fixed#758 : hp display by client, for novice class when dead thank you to @kyeme --- src/map/clif.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/map/clif.c b/src/map/clif.c index 6f14f8fa35..38ba44a3d4 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3135,7 +3135,11 @@ void clif_updatestatus(struct map_session_data *sd,int type) break; case SP_HP: // On officials the HP never go below 1, even if you die [Lemongrass] - WFIFOL(fd,4)=max(1,sd->battle_status.hp); + if( (sd->class_&MAPID_UPPERMASK) != MAPID_NOVICE ) + WFIFOL(fd,4)=max(1,sd->battle_status.hp); + else + WFIFOL(fd,4)=max((sd->battle_status.max_hp/2),sd->battle_status.hp); + // TODO: Won't these overwrite the current packet? if( map[sd->bl.m].hpmeter_visible ) clif_hpmeter(sd);