浏览代码

Fixed bugreport:8415, missplaced WM_LESSON bonus http://rathena.org/board/tracker/issue-8415-wandererminstrel-lesson-skill-bug/ Thank euphoria

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
Cydh Ramdh 11 年之前
父节点
当前提交
0104aef878
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/map/status.c

+ 6 - 6
src/map/status.c

@@ -2468,7 +2468,7 @@ static int status_get_hpbonus(struct block_list *bl, enum e_status_bonus type) {
 		//Only for BL_PC
 		if (bl->type == BL_PC) {
 			struct map_session_data *sd = map_id2sd(bl->id);
-			int i;
+			int8 i;
 
 			bonus += sd->bonus.hp;
 			if ((i=pc_checkskill(sd,CR_TRUST)) > 0)
@@ -2577,13 +2577,15 @@ static int status_get_spbonus(struct block_list *bl, enum e_status_bonus type) {
 		//Only for BL_PC
 		if (bl->type == BL_PC) {
 			struct map_session_data *sd = map_id2sd(bl->id);
-			int i;
+			int8 i;
 
 			bonus += sd->bonus.sp;
-			if ((i=pc_checkskill(sd,SL_KAINA)) > 0)
+			if ((i = pc_checkskill(sd,SL_KAINA)) > 0)
 				bonus += 30 * i;
 			if ((i = pc_checkskill(sd,RA_RESEARCHTRAP)) > 0)
 				bonus += 200 + 20 * i;
+			if ((i = pc_checkskill(sd,WM_LESSON)) > 0)
+				bonus += 30 * i;
 		}
 		
 		//Bonus by SC
@@ -2600,15 +2602,13 @@ static int status_get_spbonus(struct block_list *bl, enum e_status_bonus type) {
 		//Only for BL_PC
 		if (bl->type == BL_PC) {
 			struct map_session_data *sd = map_id2sd(bl->id);
-			int i;
+			int8 i;
 
 			bonus += sd->hprate;
 			bonus -= 100; //Default hprate is 100, so it should be add 0%
 
 			if((i=pc_checkskill(sd,HP_MEDITATIO)) > 0)
 				bonus += i;
-			if((i = pc_checkskill(sd,WM_LESSON)) > 0)
-				bonus += 30 * i;
 			if((i=pc_checkskill(sd,HW_SOULDRAIN)) > 0)
 				bonus += 2 * i;