From 5e334f3444933bdc7059d2891bf64d5dc280310e Mon Sep 17 00:00:00 2001 From: malufett Date: Sun, 28 Dec 2014 18:25:19 +0800 Subject: Fixed Bug#8453 -http://hercules.ws/board/tracker/issue-8453-mind-breaker/?gopid=24181#entry24181 Signed-off-by: malufett --- src/map/status.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/status.c b/src/map/status.c index 92c4ad3e0..03e430465 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -11576,10 +11576,14 @@ 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 + 1; + *matk_max += (rnd() % 100) % r + 1; } } #endif + + *matk_min = status->calc_matk(bl, sc, *matk_min, false); + *matk_max = status->calc_matk(bl, sc, *matk_max, false); + return; } -- cgit v1.2.3-70-g09d2