긴급 버그 패치, 내특 줄 수 있는게 하나도 없으면 강제로 상재로 주고 턴 넘기는것으로 긴급패치, 히데님이 알아서 제대로 고칠것

This commit is contained in:
2023-03-27 09:49:00 -07:00
parent 13eb0d4eae
commit fbccfbb65e
+2 -1
View File
@@ -104,7 +104,8 @@ class RandUtil
public function choiceUsingWeight(array $items)
{
if(!$items){
throw new \InvalidArgumentException();
return 2; // 내특 줄 수 있는게 하나도 없을시 일단 강제로 상재로 주는걸로 긴급 버그 수정
//throw new \InvalidArgumentException();
}
$sum = 0;
foreach ($items as $value) {