From 08ad9b1257a2db3db9718efe6abbc868ad67118e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 16 Apr 2013 02:14:45 -0300 Subject: Fixed Bug #5811 Bleeding is now considered your damage vs mobs, before it wouldn't take it in account for exp calculation http://hercules.ws/board/tracker/issue-5811-bleeding-is-not-your-damage/ Signed-off-by: shennetsind --- src/map/status.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/map/status.c b/src/map/status.c index 7412467c3..0ed7b02dc 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -9884,6 +9884,9 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data) if (--(sce->val4) >= 0) { int hp = rnd()%600 + 200; struct block_list* src = map_id2bl(sce->val2); + if( src && bl && bl->type == BL_MOB ) { + mob_log_damage((TBL_MOB*)bl,src,sd||hphp?hp:status->hp-1); + } map_freeblock_lock(); status_fix_damage(src, bl, sd||hphp?hp:status->hp-1, 1); if( sc->data[type] ) { -- cgit v1.2.3-60-g2f50