summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/status.c6
1 files changed, 5 insertions, 1 deletions
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;
}