From 1a5fc6a67b064f8c4da6a63fbfc2878190ee4578 Mon Sep 17 00:00:00 2001 From: Aleos Date: Mon, 3 Aug 2020 20:37:26 -0400 Subject: [PATCH] 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! --- src/map/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/status.cpp b/src/map/status.cpp index 27d2200626..eb18684b89 100644 --- a/src/map/status.cpp +++ b/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;