summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorFrost <jedzkie13@rocketmail.com>2015-06-14 21:21:55 +0800
committerHaru <haru@dotalux.com>2015-09-17 14:42:11 +0200
commit18f222b67d03dc8ad7584b972025bf58dbf39c1a (patch)
tree95513457121bb279baaca402829a8dd1ba64f9e4 /src/map/clif.c
parent09f5d716e5471e652867194aa8bcd8d7a62e85fd (diff)
downloadhercules-18f222b67d03dc8ad7584b972025bf58dbf39c1a.tar.gz
hercules-18f222b67d03dc8ad7584b972025bf58dbf39c1a.tar.bz2
hercules-18f222b67d03dc8ad7584b972025bf58dbf39c1a.tar.xz
hercules-18f222b67d03dc8ad7584b972025bf58dbf39c1a.zip
Added Configuration in enabling/disabling monster hp bar on new clients.
Closes #558 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f61bc7055..d1b20a750 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4217,10 +4217,10 @@ void clif_getareachar_unit(struct map_session_data* sd,struct block_list *bl) {
else if(md->special_state.size==SZ_MEDIUM)
clif->specialeffect_single(bl,421,sd->fd);
#if PACKETVER >= 20120404
- if( !(md->status.mode&MD_BOSS) ){
+ if (battle_config.show_monster_hp_bar && !(md->status.mode&MD_BOSS)) {
int i;
for(i = 0; i < DAMAGELOG_SIZE; i++) {// must show hp bar to all char who already hit the mob.
- if( md->dmglog[i].id == sd->status.char_id ) {
+ if (md->dmglog[i].id == sd->status.char_id) {
clif->monster_hp_bar(md, sd);
break;
}
@@ -17719,7 +17719,7 @@ void clif_monster_hp_bar( struct mob_data* md, struct map_session_data *sd ) {
p.HP = md->status.hp;
p.MaxHP = md->status.max_hp;
- clif->send(&p,sizeof(p),&sd->bl,SELF);
+ clif->send(&p, sizeof(p), &sd->bl, SELF);
}
/* [Ind/Hercules] placeholder for unsupported incoming packets (avoids server disconnecting client) */