From a2bc8b2b7c30bd02b8a22c0abbdc711093d852f2 Mon Sep 17 00:00:00 2001 From: rud0lp20 Date: Sat, 25 Aug 2012 17:19:57 +0000 Subject: Follow up r16669 updated the new monster hp to its official behavior. Follow up r16661 added missing configuration for variable cast time reduction through stats. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16704 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index 88ee88713..9653ba32b 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2083,8 +2083,14 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) return; #if PACKETVER >= 20120404 - if( src->type == BL_PC && !(md->status.mode&MD_BOSS) ) - clif_monster_hp_bar(md, ((TBL_PC*)src)->fd); + if( !(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. + 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 + clif_monster_hp_bar(md, sd->fd); + } + } #endif if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex] -- cgit v1.2.3-70-g09d2