From b4ad72ee6767e28b6367cb67d7940282bff75869 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 1 May 2021 23:48:01 +0900 Subject: [PATCH] =?UTF-8?q?=ED=99=98=EC=95=BD=EC=9D=84=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=EB=A1=9C=20=EC=8A=B5=EB=93=9D=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/func.php b/hwe/func.php index 16112210..2da79878 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1566,11 +1566,11 @@ function giveRandomUniqueItem(General $general, string $acquireType): bool continue; } foreach ($itemCategories as $itemCode => $cnt) { - if (!key_exists($itemCode, $occupiedUnique)) { - $availableUnique[] = [[$itemType, $itemCode], $cnt]; + if($cnt == 0){ continue; } - if($cnt == 0){ + if (!key_exists($itemCode, $occupiedUnique)) { + $availableUnique[] = [[$itemType, $itemCode], $cnt]; continue; }