From 1bc9748755bc5073f0b521a7b9827a091d3d834f Mon Sep 17 00:00:00 2001 From: Lemon <47922762+Leemonn@users.noreply.github.com> Date: Thu, 21 Sep 2023 16:04:15 +0200 Subject: [PATCH] Fixes crit calculation on pre-renewal (#7938) --- src/map/status.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/status.cpp b/src/map/status.cpp index 6b0dc124bd..ff16ea0a4a 100644 --- a/src/map/status.cpp +++ b/src/map/status.cpp @@ -5780,7 +5780,11 @@ void status_calc_bl_main(struct block_list *bl, std::bitset flag) if (status->luk == b_status->luk) status->cri = status_calc_critical(bl, sc, b_status->cri); else +#ifdef RENEWAL status->cri = status_calc_critical(bl, sc, b_status->cri + 3*(status->luk - b_status->luk)); +#else + status->cri = status_calc_critical(bl, sc, b_status->cri + (status->luk - b_status->luk)*10/3); +#endif /// After status_calc_critical so the bonus is applied despite if you have or not a sc bugreport:5240 if (sd) {