From 40303e24ffb944d4bd920e75c5177d43c87117d5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Jul 2020 23:18:56 -0300 Subject: [TMW2] CRIT FIX --- src/map/battle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index 5286f97a5..eb96f2036 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4664,7 +4664,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl skill_id == SN_SHARPSHOOTING || skill_id == MA_SHARPSHOOTING || skill_id == NJ_KIRIKAGE)) { - short cri = sstatus->cri; + int cri = sstatus->cri; if (sd != NULL) { // if show_katar_crit_bonus is enabled, it already done the calculation in status.c if (!battle_config.show_katar_crit_bonus && sd->weapontype == W_KATAR) { @@ -4684,7 +4684,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl //Therefore, we use the old value 3 on cases when an sd gets attacked by a mob cri -= tstatus->luk*(!sd&&tsd?3:2); #else - cri -= status->get_lv(target) / 15 + 2 * status_get_luk(target); + cri -= status->get_lv(target) / 5 + (3 * status_get_luk(target))/2; #endif if( tsc && tsc->data[SC_SLEEP] ) { -- cgit v1.2.3-60-g2f50