diff options
author | Haru <haru@dotalux.com> | 2019-08-25 20:03:54 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2019-10-22 18:23:36 +0200 |
commit | 795eb7e51203db91594b659e54b133a585aa38cb (patch) | |
tree | 5494d5b65005829fc9d69741b932b7337ad9b4ae /src | |
parent | 857650c4f58d347455b0d075b49a53f69e6d0c51 (diff) | |
download | hercules-795eb7e51203db91594b659e54b133a585aa38cb.tar.gz hercules-795eb7e51203db91594b659e54b133a585aa38cb.tar.bz2 hercules-795eb7e51203db91594b659e54b133a585aa38cb.tar.xz hercules-795eb7e51203db91594b659e54b133a585aa38cb.zip |
Fix Steal not showing HP bar right away but only when the target leaves/enters sight range
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 2ea189c23..44ee47640 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2237,6 +2237,14 @@ static void mob_log_damage(struct mob_data *md, struct block_list *src, int dama md->dmglog[minpos].flag= flag; md->dmglog[minpos].dmg = damage; } +#if (PACKETVER >= 20120404 && PACKETVER < 20131223) + // Show HP bar to all chars who hit the mob (fixes TF_STEAL not showing HP bar right away but only when target leaves/re-enters sight range) + if (battle_config.show_monster_hp_bar != 0 && (md->status.mode & MD_BOSS) == 0) { + struct map_session_data *sd = map->charid2sd(char_id); + if (sd != NULL && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE)) // check if in range + clif->monster_hp_bar(md, sd); + } +#endif } return; } |