diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 3 |
1 files changed, 3 insertions, 0 deletions
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||hp<status->hp?hp:status->hp-1); + } map_freeblock_lock(); status_fix_damage(src, bl, sd||hp<status->hp?hp:status->hp-1, 1); if( sc->data[type] ) { |