summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-03 02:12:57 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-03 02:12:57 +0000
commit557dea285150a612bb45afaad68b02154df9ff93 (patch)
tree8cbe1e352bbec47f5b6e3293a7c131186cf32c35 /src
parent87eb80e0f451269a8dcaf09de1e8131cbbf682fb (diff)
downloadhercules-557dea285150a612bb45afaad68b02154df9ff93.tar.gz
hercules-557dea285150a612bb45afaad68b02154df9ff93.tar.bz2
hercules-557dea285150a612bb45afaad68b02154df9ff93.tar.xz
hercules-557dea285150a612bb45afaad68b02154df9ff93.zip
* Do not log damage if it's done by mob itself (bugreport:2933) [Inkfish]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13716 54d463be-8e91-2dee-dedb-b68131a5f0ec
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 )
{