summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-05 16:55:09 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-05 16:55:09 +0000
commitd092e39978999e443d6d8b0fa5ea3130f37de263 (patch)
tree6c517e4652c5774f1b3fec4b2504efcfcce53c21 /src
parente52d43280012e31050f651406d2b5794a662370b (diff)
downloadhercules-d092e39978999e443d6d8b0fa5ea3130f37de263.tar.gz
hercules-d092e39978999e443d6d8b0fa5ea3130f37de263.tar.bz2
hercules-d092e39978999e443d6d8b0fa5ea3130f37de263.tar.xz
hercules-d092e39978999e443d6d8b0fa5ea3130f37de263.zip
Fixed issue with costume item bonuses not checking for headgear position (would stack), bugreport:5204
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15398 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 4649f4309..d8c5bf495 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2190,6 +2190,10 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
continue;
if(i == EQI_HEAD_TOP && (sd->equip_index[EQI_HEAD_MID] == index || sd->equip_index[EQI_HEAD_LOW] == index))
continue;
+ if(i == EQI_COSTUME_MID && sd->equip_index[EQI_COSTUME_LOW] == index)
+ continue;
+ if(i == EQI_COSTUME_TOP && (sd->equip_index[EQI_COSTUME_MID] == index || sd->equip_index[EQI_COSTUME_LOW] == index))
+ continue;
if(!sd->inventory_data[index])
continue;