diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-28 18:25:19 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-28 18:25:19 +0800 |
commit | 5e334f3444933bdc7059d2891bf64d5dc280310e (patch) | |
tree | c37471fa3e32f8967b781161c45358c269123844 /src | |
parent | 23a88d62725074068be31b54e4f406051dbc93a4 (diff) | |
download | hercules-5e334f3444933bdc7059d2891bf64d5dc280310e.tar.gz hercules-5e334f3444933bdc7059d2891bf64d5dc280310e.tar.bz2 hercules-5e334f3444933bdc7059d2891bf64d5dc280310e.tar.xz hercules-5e334f3444933bdc7059d2891bf64d5dc280310e.zip |
Fixed Bug#8453
-http://hercules.ws/board/tracker/issue-8453-mind-breaker/?gopid=24181#entry24181
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/status.c | 6 |
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; } |