From 32a86ea5bb527ff34d0452d0fe4ede34bde9cde5 Mon Sep 17 00:00:00 2001 From: malufett Date: Mon, 22 Dec 2014 21:54:19 +0800 Subject: Follow up@772cb2b111973c0c749e505ffd2685bb67e887bd Signed-off-by: malufett --- src/map/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index b1c86cc67..2a09b47d9 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -11475,7 +11475,7 @@ int status_get_weapon_atk(struct block_list *bl, struct weapon_atk *watk, int fl && (refine = sd->status.inventory[index].refine) < 16 && refine ) { int r = status->refine_info[watk->wlv].randombonus_max[refine + (4 - watk->wlv)] / 100; if ( r ) - max += (rnd() % 100) % (r / 10) + 1; + max += (rnd() % 100) % r + 1; } } @@ -11567,7 +11567,7 @@ void status_get_matk_sub(struct block_list *bl, int flag, unsigned short *matk_m && (refine = sd->status.inventory[index].refine) < 16 && refine ) { int r = status->refine_info[sd->inventory_data[index]->wlv].randombonus_max[refine + (4 - sd->inventory_data[index]->wlv)] / 100; if ( r ) - st->matk_max += (rnd() % 100) % (r / 10) + 1; + st->matk_max += (rnd() % 100) % r + 1; } } #endif -- cgit v1.2.3-60-g2f50