summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-11-17 15:11:25 +0100
committerGitHub <noreply@github.com>2019-11-17 15:11:25 +0100
commitebbed2342dbb7324295217ac7cf46f5e9da2fc0b (patch)
treed99f8aba2b104153be9f3bf8962f76ae6d833561 /src/map/mob.c
parent174c5d284f5cd57e0125535ea31554038379690e (diff)
parent22b946b2db0374164697ba57b64abb11551b0ff3 (diff)
downloadhercules-ebbed2342dbb7324295217ac7cf46f5e9da2fc0b.tar.gz
hercules-ebbed2342dbb7324295217ac7cf46f5e9da2fc0b.tar.bz2
hercules-ebbed2342dbb7324295217ac7cf46f5e9da2fc0b.tar.xz
hercules-ebbed2342dbb7324295217ac7cf46f5e9da2fc0b.zip
Merge pull request #2567 from MishimaHaruna/steal-fixes
Fix some issues in the Steal skill
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index ca1ce3585..dce084a23 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2236,6 +2236,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;
}