diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-07 23:45:49 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-07 23:45:49 +0000 |
commit | a1b41fc31ea08bd869e609bb41dd8ba011dcbb66 (patch) | |
tree | 1998a7d08771a1e22163727db9b6018186f1b0fb /src/map/mob.c | |
parent | 5fd92c094561f989546694d6a80a4adf1609eca2 (diff) | |
download | hercules-a1b41fc31ea08bd869e609bb41dd8ba011dcbb66.tar.gz hercules-a1b41fc31ea08bd869e609bb41dd8ba011dcbb66.tar.bz2 hercules-a1b41fc31ea08bd869e609bb41dd8ba011dcbb66.tar.xz hercules-a1b41fc31ea08bd869e609bb41dd8ba011dcbb66.zip |
Merged database changes from trunk r14927.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/renewal@14927 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 5fb440b4f..9b83440dd 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2259,8 +2259,10 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) int itemid = 0; for (i = 0; i < ARRAYLENGTH(sd->add_drop) && (sd->add_drop[i].id || sd->add_drop[i].group); i++) { - if (sd->add_drop[i].race & (1<<status->race) || - sd->add_drop[i].race & 1<<(status->mode&MD_BOSS?RC_BOSS:RC_NONBOSS)) + if ( ( sd->add_drop[i].race <= (1<<status->race) && + sd->add_drop[i].race & (1<<status->race) || + sd->add_drop[i].race & 1<<(status->mode&MD_BOSS?RC_BOSS:RC_NONBOSS) ) || + ( sd->add_drop[i].race > (1<<RC_MAX) && sd->add_drop[i].race == md->class_) ) { //check if the bonus item drop rate should be multiplied with mob level/10 [Lupus] if(sd->add_drop[i].rate < 0) { |