Преглед изворни кода

* Fixed bonus 'bHPDrainValue' on left hand would work as right hand bonus, when specified with 'bonus' rather than 'bonus2' (bugreport:4939, since r6221).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14834 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei пре 14 година
родитељ
комит
0bbca2a6aa
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 2 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/pc.c

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2011/05/29
+	* Fixed bonus 'bHPDrainValue' on left hand would work as right hand bonus, when specified with 'bonus' rather than 'bonus2' (bugreport:4939, since r6221). [Ai4rei]
 2011/05/23
 	* Changed enumerating defines into enumerations (related topic:264007). [Ai4rei]
 	- Minor fixups on few macros.

+ 2 - 2
src/map/pc.c

@@ -2321,8 +2321,8 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
 			sd->right_weapon.hp_drain[RC_BOSS].value += val;
 		}
 		else if(sd->state.lr_flag == 1) {
-			sd->right_weapon.hp_drain[RC_NONBOSS].value += val;
-			sd->right_weapon.hp_drain[RC_BOSS].value += val;
+			sd->left_weapon.hp_drain[RC_NONBOSS].value += val;
+			sd->left_weapon.hp_drain[RC_BOSS].value += val;
 		}
 		break;
 	case SP_SP_DRAIN_VALUE: