Skip to content

Commit

Permalink
fix RG_BACKSTAP (Back stab) bow damage formula
Browse files Browse the repository at this point in the history
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%)
  • Loading branch information
guilherme-gm committed Apr 27, 2024
1 parent f7680a7 commit 50ae6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50ae6b7

Please sign in to comment.