Update Biolo & Meister summon packet (#6505)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
@@ -2473,6 +2473,9 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage)
|
||||
#if PACKETVER >= 20120404
|
||||
if (battle_config.monster_hp_bars_info && !map_getmapflag(md->bl.m, MF_HIDEMOBHPBAR)) {
|
||||
int i;
|
||||
if (md->special_state.ai == AI_ABR || md->special_state.ai == AI_BIONIC) {
|
||||
clif_summon_hp_bar(*md);
|
||||
}
|
||||
for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob.
|
||||
struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
|
||||
if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
|
||||
@@ -3396,6 +3399,9 @@ void mob_heal(struct mob_data *md,unsigned int heal)
|
||||
#if PACKETVER >= 20120404
|
||||
if (battle_config.monster_hp_bars_info && !map_getmapflag(md->bl.m, MF_HIDEMOBHPBAR)) {
|
||||
int i;
|
||||
if (md->special_state.ai == AI_ABR || md->special_state.ai == AI_BIONIC) {
|
||||
clif_summon_hp_bar(*md);
|
||||
}
|
||||
for(i = 0; i < DAMAGELOG_SIZE; i++)// must show hp bar to all char who already hit the mob.
|
||||
if( md->dmglog[i].id ) {
|
||||
struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
|
||||
|
||||
Reference in New Issue
Block a user