Преглед на файлове

- Should have fixed @refine applying multiple times to equipment that uses multiple equip slots.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7762 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex преди 19 години
родител
ревизия
478e0bc736
променени са 2 файла, в които са добавени 11 реда и са изтрити 0 реда
  1. 3 0
      Changelog-Trunk.txt
  2. 8 0
      src/map/atcommand.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2006/07/20
+	* Should have fixed @refine applying multiple times to equipment that uses
+	  multiple equip slots. [Skotlex]
 2006/07/19
 	* Fixed the inf code update breakage which was blocking all offensive
 	  skills. [Skotlex]

+ 8 - 0
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;