summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-22 21:54:19 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-22 21:54:19 +0800
commit32a86ea5bb527ff34d0452d0fe4ede34bde9cde5 (patch)
tree5ea42dad42420eaad468c9aea443e21b1defee18
parentea34b8031646a351e8ddbbb829fb99684df5e6e5 (diff)
downloadhercules-32a86ea5bb527ff34d0452d0fe4ede34bde9cde5.tar.gz
hercules-32a86ea5bb527ff34d0452d0fe4ede34bde9cde5.tar.bz2
hercules-32a86ea5bb527ff34d0452d0fe4ede34bde9cde5.tar.xz
hercules-32a86ea5bb527ff34d0452d0fe4ede34bde9cde5.zip
Follow up@772cb2b111973c0c749e505ffd2685bb67e887bd
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
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