summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-31 23:18:56 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-31 23:18:56 -0300
commit40303e24ffb944d4bd920e75c5177d43c87117d5 (patch)
tree0773089359da1ca565b45668bf12acfbc352d89b
parenta03dddc9382c947ca574298c01e5834d82dbce57 (diff)
downloadhercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.gz
hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.bz2
hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.tar.xz
hercules-40303e24ffb944d4bd920e75c5177d43c87117d5.zip
[TMW2] CRIT FIX
-rw-r--r--src/map/battle.c4
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] ) {