diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-07-31 23:18:56 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-07-31 23:18:56 -0300 |
commit | 40303e24ffb944d4bd920e75c5177d43c87117d5 (patch) | |
tree | 0773089359da1ca565b45668bf12acfbc352d89b /src/map | |
parent | a03dddc9382c947ca574298c01e5834d82dbce57 (diff) | |
download | hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.gz hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.bz2 hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.xz hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.zip |
[TMW2] CRIT FIX
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 4 |
1 files 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] ) { |