summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 4577ce0bd..59182fcbb 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1800,6 +1800,8 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage)
return; //Do nothing for absorbed damage.
if( !damage && !(src->type&DEFAULT_ENEMY_TYPE(md)) )
return; //Do not log non-damaging effects from non-enemies.
+ if( src->id == md->bl.id )
+ return; //Do not log self-damage.
switch( src->type )
{