summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e83b1846b..c143fc470 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1421,10 +1421,12 @@ static struct Damage battle_calc_weapon_attack(
skillratio += 30*skill_lv;
break;
case WS_CARTTERMINATION:
+ i = (10 * (16 - skill_lv));
+ if (i < 1) i = 1;
if(sd && sd->cart_weight > 0)
- skillratio += sd->cart_weight / (10 * (16 - skill_lv)) - 100;
+ skillratio += sd->cart_weight / i - 100;
else if (!sd)
- skillratio += battle_config.max_cart_weight / (10 * (16 - skill_lv));
+ skillratio += battle_config.max_cart_weight / i - 100;
flag.cardfix = 0;
break;
case TK_DOWNKICK: