Corrects Doram healing skill effects (#6978)

* Fixes #6962.
* Tuna Belly and Fresh Shrimp don't apply normal green heal effects.
* Resolves an issue with the HP bars not properly updating for party members as well.
Thanks to @KrokusPokus!
This commit is contained in:
Aleos
2022-06-07 11:05:37 -04:00
committed by GitHub
parent 001981cf66
commit 354d2605f2
5 changed files with 22 additions and 12 deletions

View File

@@ -3345,6 +3345,19 @@ static int clif_hpmeter(struct map_session_data *sd)
return 0;
}
/**
* Send HP bar update to others.
* @param sd: Player invoking update
*/
void clif_update_hp(map_session_data &sd) {
if (map_getmapdata(sd.bl.m)->hpmeter_visible)
clif_hpmeter(&sd);
if (!battle_config.party_hp_mode && sd.status.party_id)
clif_party_hp(&sd);
if (sd.bg_id)
clif_bg_hp(&sd);
}
/// Notifies client of a character parameter change.
/// 00b0 <var id>.W <value>.L (ZC_PAR_CHANGE)
/// 00b1 <var id>.W <value>.L (ZC_LONGPAR_CHANGE)
@@ -3717,15 +3730,7 @@ void clif_updatestatus(struct map_session_data *sd,int type)
}
break;
case SP_HP:
if( map_getmapdata(sd->bl.m)->hpmeter_visible ){
clif_hpmeter(sd);
}
if( !battle_config.party_hp_mode && sd->status.party_id ){
clif_party_hp(sd);
}
if( sd->bg_id ){
clif_bg_hp(sd);
}
clif_update_hp(*sd);
break;
}
}