summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-11 01:25:40 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-11 01:25:40 +0000
commit9684bc0bf1ced9df4c7885c767ba25142c075018 (patch)
tree735657eec6f6822010e9e9aacdac5ef5f896f007 /src/map/itemdb.c
parent1da444ee4f4c92bc69c9e2e897e0bf4674e52bc8 (diff)
downloadhercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.gz
hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.bz2
hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.tar.xz
hercules-9684bc0bf1ced9df4c7885c767ba25142c075018.zip
- Fixed the item group bonus not working.
- Removed unnecessary member id from the item group structure. - Fixed songs/dances always being considered overlapped with themselves. - Added some additional song/dance overlap code that should correctly change the effect of songs/dances when they overlap. - Added a check so that the status-change packet is always send to self when the inflicted char is a player disguised. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8242 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 76ce6f406..c47aaf90a 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -123,7 +123,7 @@ int itemdb_group_bonus(struct map_session_data *sd, int itemid)
if (!sd->itemgrouphealrate[i])
continue;
for (j=0; j < itemgroup_db[i].qty; j++) {
- if (itemgroup_db[i].id[j] == itemid)
+ if (itemgroup_db[i].nameid[j] == itemid)
{
bonus += sd->itemgrouphealrate[i];
continue;