summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-01-30 00:11:30 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-01-30 00:11:30 +0800
commitbfcda537fe2cb34b88a65914b511ac78f432196c (patch)
tree67718df9e01a6915315ccd8ea2fed36f9e1145f2
parent50f07c8baf3d753f6cde02737c3e3860261fabf9 (diff)
downloadhercules-bfcda537fe2cb34b88a65914b511ac78f432196c.tar.gz
hercules-bfcda537fe2cb34b88a65914b511ac78f432196c.tar.bz2
hercules-bfcda537fe2cb34b88a65914b511ac78f432196c.tar.xz
hercules-bfcda537fe2cb34b88a65914b511ac78f432196c.zip
Fixed Bug#8416
-http://hercules.ws/board/tracker/issue-8416-geneticcart-tornado/?gopid=23982#entry23982 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d32a799ab..74dfde41d 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2452,7 +2452,7 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
case GN_CART_TORNADO:
{
int strbonus = bst->str;
- skillratio = 50 * skill_lv + (sd ? sd->cart_weight : battle_config.max_cart_weight) / 10 / (150 - strbonus) + 50 * (sd ? pc->checkskill(sd, GN_REMODELING_CART) : 5);
+ skillratio = 50 * skill_lv + (sd ? sd->cart_weight : battle_config.max_cart_weight) / 10 / max(150 - strbonus, 1) + 50 * (sd ? pc->checkskill(sd, GN_REMODELING_CART) : 5);
}
break;
case GN_CARTCANNON: