From e8a7daec9fb5556932f67e227bc5dbcfaf0ae21e Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 15 Dec 2018 17:04:03 +0100 Subject: [PATCH] Fixed pre-renewal atk (#3752) Follow up fe197bfa120aef5fd31c6896122b35fdc06774b4 Fixes #3623 Thanks to @mrjnumber1 --- src/map/status.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/status.cpp b/src/map/status.cpp index b502177754..00db2ebec3 100644 --- a/src/map/status.cpp +++ b/src/map/status.cpp @@ -2481,6 +2481,8 @@ unsigned short status_base_atk(const struct block_list *bl, const struct status_ #ifdef RENEWAL str = (dstr * 10 + dex * 10 / 5 + status->luk * 10 / 3 + level * 10 / 4) / 10; #else + dstr = str / 10; + str += dstr*dstr; str += dex / 5 + status->luk / 5; #endif break; @@ -2488,6 +2490,8 @@ unsigned short status_base_atk(const struct block_list *bl, const struct status_ #ifdef RENEWAL str = dstr + level; #else + dstr = str / 10; + str += dstr*dstr; str += dex / 5 + status->luk / 5; #endif break;