From 46764ff9aa7c35c837424f8da03fbb235d7a428d Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 27 Apr 2020 14:22:07 +0900 Subject: [PATCH] =?UTF-8?q?=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/sammo/GeneralAI.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GeneralAI.php b/hwe/sammo/GeneralAI.php index 592beb4d..8e6b2111 100644 --- a/hwe/sammo/GeneralAI.php +++ b/hwe/sammo/GeneralAI.php @@ -2150,7 +2150,14 @@ class GeneralAI if($genType & self::t지장){ $availableArmType[GameUnitConst::T_WIZARD] = $dex[GameUnitConst::T_WIZARD] * $this->fullIntel * 3; } - $armType = Util::choiceRandomUsingWeight($availableArmType); + + if($availableArmType){ + $armType = Util::choiceRandomUsingWeight($availableArmType); + } + else{ + $armType = Util::choiceRandom([GameUnitConst::T_FOOTMAN,GameUnitConst::T_ARCHER,GameUnitConst::T_CAVALRY]); + } + }