summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-10-30 12:55:01 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-10-30 12:55:01 +0800
commit5a55c6f349b2f094494d83f3012004a76ed934a0 (patch)
tree963acdcb2ba955a2098aeba2e55b828bd5d92a27 /src/map/status.c
parent8f0508418425abb518381b46cc73caa1a9e66890 (diff)
downloadhercules-5a55c6f349b2f094494d83f3012004a76ed934a0.tar.gz
hercules-5a55c6f349b2f094494d83f3012004a76ed934a0.tar.bz2
hercules-5a55c6f349b2f094494d83f3012004a76ed934a0.tar.xz
hercules-5a55c6f349b2f094494d83f3012004a76ed934a0.zip
Fixed Bug#7736
-http://hercules.ws/board/tracker/issue-7736-fist-spell-w-double-attack-and-similar-effects/?gopid=20575#entry20575 Fixed RE ATK random variance. Thanks to Angelmelody. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 824ad1f58..524d5b6a7 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -11384,7 +11384,7 @@ int status_get_weapon_atk(struct block_list *bl, struct weapon_atk *watk, int fl
if( !(flag&1) ){
if( max > min )
- max = min + rnd()%(max - min);
+ max = min + rnd()%(max - min + 1);
else
max = min;
}