From beb9db457a18446a19b1757b0b142dc460117e6d Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Sun, 13 Aug 2023 22:42:58 -0300 Subject: [PATCH] fix RG_BACKSTAP (Back stab) bow damage formula before this commit, only part of the skillratio value was being halved when using bows, because skillratio by default is 100. the correct behavior for bows in backstab is to halve the entire skillratio value (including the initial 100%) --- src/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/battle.c b/src/map/battle.c index a7696097ec0..dd1d64f35d4 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2179,7 +2179,7 @@ static int battle_calc_skillratio(int attack_type, struct block_list *src, struc break; case RG_BACKSTAP: if (sd != NULL && sd->weapontype == W_BOW && battle_config.backstab_bow_penalty) - skillratio += (200 + 40 * skill_lv) / 2; + skillratio += -100 + (300 + 40 * skill_lv) / 2; else skillratio += 200 + 40 * skill_lv; break;