git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13716 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2009/05/03
+ * Do not log damage if it's done by mob itself (bugreport:2933) [Inkfish]
2009/05/02
* Spirit of Bard and Dancer now only works for mastered skills (bugreport:3037) [Playtester]
- also fixed an outdated comment in the source code
@@ -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 )
{