diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 13:56:37 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 13:56:37 +0000 |
commit | d11101c061a9571c34dbbe66534a3a4f1afa99b3 (patch) | |
tree | 53f5ed5dd9f5f1ba81521d8511bdbf9206db456e /src/map/atcommand.c | |
parent | 10b8e42b412b94242b66806f6e179252b111deea (diff) | |
download | hercules-d11101c061a9571c34dbbe66534a3a4f1afa99b3.tar.gz hercules-d11101c061a9571c34dbbe66534a3a4f1afa99b3.tar.bz2 hercules-d11101c061a9571c34dbbe66534a3a4f1afa99b3.tar.xz hercules-d11101c061a9571c34dbbe66534a3a4f1afa99b3.zip |
- Should have fixed @refine applying multiple times to equipment that uses multiple equip slots.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7762 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d22483f8a..d5d2ce661 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3769,8 +3769,16 @@ int atcommand_refine( for (j = 0; j < EQI_MAX-1; j++) {
if ((i = sd->equip_index[j]) < 0)
continue;
+ if(j == EQI_HAND_R && sd->equip_index[EQI_HAND_L] == i)
+ continue;
+ if(j == EQI_HEAD_MID && sd->equip_index[EQI_HEAD_LOW] == i)
+ continue;
+ if(j == EQI_HEAD_TOP && (sd->equip_index[EQI_HEAD_MID] == i || sd->equip_index[EQI_HEAD_LOW] == i))
+ continue;
+
if(position && !(sd->status.inventory[i].equip & position))
continue;
+
final_refine = sd->status.inventory[i].refine + refine;
if (final_refine > MAX_REFINE)
final_refine = MAX_REFINE;
|