소스 검색

Fixes refine attack bonus (#5261)

* Fixes #4007.
* Fixes an issue where the refine bonus of a weapon was overwriting ATK2 bonuses given by other equipment.
Thanks to @cahya1992!
Aleos 4 년 전
부모
커밋
1a5fc6a67b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/map/status.cpp

+ 1 - 1
src/map/status.cpp

@@ -3984,7 +3984,7 @@ int status_calc_pc_sub(struct map_session_data* sd, enum e_status_calc_opt opt)
 			}
 			wa->atk += sd->inventory_data[index]->atk;
 			if(r)
-				wa->atk2 = refine_info[wlv].bonus[r-1] / 100;
+				wa->atk2 += refine_info[wlv].bonus[r-1] / 100;
 #ifdef RENEWAL
 			wa->matk += sd->inventory_data[index]->matk;
 			wa->wlv = wlv;