From b3cf0c4a7628a4cec897ccdc86130e2b8d71b565 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 Jan 2021 17:24:48 -0300 Subject: Fix possible bug in AOE introduced on previous patch --- npc/craft/options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } //////////////////////////////////// -- cgit v1.2.3-70-g09d2