summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-27 16:04:07 -0300
committershennetsind <ind@henn.et>2013-04-27 16:04:07 -0300
commitf2942453592621f5d3e4553fa96cd1b417fa74fb (patch)
treefb111919b69270be57b4a19a4f925dfb23fec86f /src/map/mob.c
parentad51ea46af4590c7ca51fd55cf63f75de9dc67dc (diff)
downloadhercules-f2942453592621f5d3e4553fa96cd1b417fa74fb.tar.gz
hercules-f2942453592621f5d3e4553fa96cd1b417fa74fb.tar.bz2
hercules-f2942453592621f5d3e4553fa96cd1b417fa74fb.tar.xz
hercules-f2942453592621f5d3e4553fa96cd1b417fa74fb.zip
Fixed Bug #7193 and ...
http://hercules.ws/board/tracker/issue-7193-monsterhp/ -- Follow up 0f4a50d13538c3e5d3ca4d3822f92217c8da0479 re-introduced mob_max_skilllvl -- Updated some packet intro dates (special thanks to yommy! <33) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 885897e62..e5520b622 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2067,7 +2067,16 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) {
return;
#if PACKETVER >= 20120404
- clif->monster_hp_bar(md);
+ 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.
+ if( md->dmglog[i].id ) {
+ 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);
+ }
+ }
+ }
#endif
if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]
@@ -4315,7 +4324,7 @@ static bool mob_parse_row_mobskilldb(char** str, int columns, int current)
//Skill lvl
j= atoi(str[4])<=0 ? 1 : atoi(str[4]);
- ms->skill_lv= j;
+ ms->skill_lv= j>battle_config.mob_max_skilllvl ? battle_config.mob_max_skilllvl : j; //we strip max skill level
//Apply battle_config modifiers to rate (permillage) and delay [Skotlex]
tmp = atoi(str[5]);