diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-07 14:55:43 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-07 14:55:43 +0000 |
commit | ea24a3d2a2130ebfd16b310f24b47c6c2cf72e7a (patch) | |
tree | 18acb4a7c0a9bd93e24f361d81561ca6b1c23eb2 /src | |
parent | 617884f7f78a6806b70020119130eb1e0090a0c4 (diff) | |
download | hercules-ea24a3d2a2130ebfd16b310f24b47c6c2cf72e7a.tar.gz hercules-ea24a3d2a2130ebfd16b310f24b47c6c2cf72e7a.tar.bz2 hercules-ea24a3d2a2130ebfd16b310f24b47c6c2cf72e7a.tar.xz hercules-ea24a3d2a2130ebfd16b310f24b47c6c2cf72e7a.zip |
Minor item-related updates, and a couple quest database updates.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14926 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index f41501638..9b83440dd 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2259,9 +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) || - sd->add_drop[i].race == md->class_) + 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) { |