From e5fc467c4eb8eb16b6d3797b00b8ef1823bbdafd Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 21 Sep 2019 21:04:17 +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/func_npc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index b5c17219..f8911098 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -1009,7 +1009,7 @@ function processAI($no, &$reduce_turn) { } elseif($nation['war'] == 1 || !$allowedAction->battle) { //전금이면 내정, 조달 $command = EncodeCommand(0, 0, 0, (rand()%2)*8 + 1); //내정, 조달 - } else { $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 + } else if($target){ $command = EncodeCommand(0, 0, $target[rand()%count($target)], 16); } //있으면 공격 } } }