diff options
author | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-11 15:50:44 +0000 |
---|---|---|
committer | Skotlex <Skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-08-11 15:50:44 +0000 |
commit | ca008d79a6b5024e55cd5423e577974a5017704c (patch) | |
tree | de9ed6833daab33b4c71b3c6d3ee9f49f4d8349e /src/map/pc.c | |
parent | ecf7124424ce3a052123fb29407fb2114d168843 (diff) | |
download | hercules-ca008d79a6b5024e55cd5423e577974a5017704c.tar.gz hercules-ca008d79a6b5024e55cd5423e577974a5017704c.tar.bz2 hercules-ca008d79a6b5024e55cd5423e577974a5017704c.tar.xz hercules-ca008d79a6b5024e55cd5423e577974a5017704c.zip |
- Fixed the add_drop code breakage which ocurred after adding support for SP_ADD_CLASS_DROP_ITEM. There's probably a bugreport for this, but the website is also broken currently :3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14933 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 30bde19df..2de4c28de 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1608,7 +1608,8 @@ static int pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id for(i = 0; i < max && (drop[i].id || drop[i].group); i++) { if( ((id && drop[i].id == id) || - (group && drop[i].group == group)) && race < (RC_MAX<<1) + (group && drop[i].group == group)) + && race > 0 ) { drop[i].race |= race; if(drop[i].rate > 0 && rate > 0) @@ -2855,7 +2856,7 @@ int pc_bonus3(struct map_session_data *sd,int type,int type2,int type3,int val) break; case SP_ADD_CLASS_DROP_ITEM: if(sd->state.lr_flag != 2) - pc_bonus_item_drop(sd->add_drop, ARRAYLENGTH(sd->add_drop), type2, 0, type3, val); + pc_bonus_item_drop(sd->add_drop, ARRAYLENGTH(sd->add_drop), type2, 0, -type3, val); break; case SP_AUTOSPELL: if(sd->state.lr_flag != 2) |