summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-22 17:24:48 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-22 17:24:48 -0300
commitb3cf0c4a7628a4cec897ccdc86130e2b8d71b565 (patch)
treed9861d9ee3403c3bd85cd1553e111af5e8aea440
parent7ffe1fa0f6d99b7abd5f999a9465caeac299fc71 (diff)
downloadserverdata-b3cf0c4a7628a4cec897ccdc86130e2b8d71b565.tar.gz
serverdata-b3cf0c4a7628a4cec897ccdc86130e2b8d71b565.tar.bz2
serverdata-b3cf0c4a7628a4cec897ccdc86130e2b8d71b565.tar.xz
serverdata-b3cf0c4a7628a4cec897ccdc86130e2b8d71b565.zip
Fix possible bug in AOE introduced on previous patch
-rw-r--r--npc/craft/options.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index 8bd1126dc..f77600a8b 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -534,7 +534,7 @@ function script csys_BonusCalc {
.@base=rand2(1, .@avg+1);
}
} else {
- .@base=rand2(.@avg*9/10+1, .@avg+1);
+ .@base=rand2(max(1, .@avg*9/10), .@avg+1);
}
////////////////////////////////////