Follow up to 85971d6

* Fixed#758 : hp display by client, for novice class when dead
thank you to @kyeme
This commit is contained in:
icxbb-xx 2015-11-25 16:44:16 +07:00
parent d46cf4b35e
commit 8ca20d184f

View File

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