Added a check to make sure killed monster's level was greater than half of the mercenary owner's level before incrementing mercenary's killcount. (bugreport:2410)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13367 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Paradox924X 2008-11-10 04:05:59 +00:00
parent 2016dd0599
commit 227444c5d6
2 changed files with 3 additions and 1 deletions

View File

@ -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.
2008/11/09
* Added a check to make sure killed monster's level was greater than half of the mercenary owner's level before incrementing mercenary's killcount. (bugreport:2410) [Paradox924X]
2008/11/07
* Rev. 13358 Changed how mobcount works since it wasn't counting last mob death. (bugreport:2419) [L0ne_W0lf]
2008/11/06

View File

@ -2324,7 +2324,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
case BL_MER: sd = ((TBL_MER*)src)->master; break;
}
if( sd && sd->md && src && src->type != BL_HOM )
if( sd && sd->md && src && src->type != BL_HOM && mob_db(md->class_)->lv > sd->status.base_level/2 )
mercenary_kills(sd->md);
if( md->npc_event[0] && !md->state.npc_killmonster )