From 8aa0d9ed6c0f303b4931551f7bc69dc03962e41c Mon Sep 17 00:00:00 2001 From: Jedzkie Date: Mon, 2 Apr 2018 18:58:01 +0800 Subject: [PATCH] Monster hp bar fix --- src/map/mob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/mob.c b/src/map/mob.c index e93c9009df1..d008af17890 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2127,7 +2127,7 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) { #if PACKETVER >= 20131223 // Resend ZC_NOTIFY_MOVEENTRY to Update the HP - if (battle_config.show_monster_hp_bar) + if (battle_config.show_monster_hp_bar && !(md->status.mode & MD_BOSS)) clif->set_unit_walking(&md->bl, NULL, unit->bl2ud(&md->bl), AREA); #endif @@ -2858,7 +2858,7 @@ void mob_heal(struct mob_data *md, unsigned int heal) clif->charnameack (0, &md->bl); #if PACKETVER >= 20131223 // Resend ZC_NOTIFY_MOVEENTRY to Update the HP - if (battle_config.show_monster_hp_bar) + if (battle_config.show_monster_hp_bar && !(md->status.mode & MD_BOSS)) clif->set_unit_walking(&md->bl, NULL, unit->bl2ud(&md->bl), AREA); #endif