diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-10 04:05:59 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-11-10 04:05:59 +0000 |
commit | 9288b397b39c214b268f17769f2203657928b815 (patch) | |
tree | b139ad8c87d53b377240fb5d7f5f0f83db56a006 | |
parent | 789a46f94b3ee7dff3252dd184ac7d7b2307e413 (diff) | |
download | hercules-9288b397b39c214b268f17769f2203657928b815.tar.gz hercules-9288b397b39c214b268f17769f2203657928b815.tar.bz2 hercules-9288b397b39c214b268f17769f2203657928b815.tar.xz hercules-9288b397b39c214b268f17769f2203657928b815.zip |
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13367 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/mob.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 8e036e59b..fa5d713db 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -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 diff --git a/src/map/mob.c b/src/map/mob.c index 9e734926a..1daeda3b0 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -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 ) |