From c46d9fd04ac1719282bf49c960c716085629d709 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 8 May 2020 03:31:17 +0900 Subject: [PATCH] =?UTF-8?q?=ED=84=B4=20=EC=8B=A4=ED=96=89=20=EC=88=9C?= =?UTF-8?q?=EC=84=9C=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/TurnExecutionHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/TurnExecutionHelper.php b/hwe/sammo/TurnExecutionHelper.php index e4692631..b17baf82 100644 --- a/hwe/sammo/TurnExecutionHelper.php +++ b/hwe/sammo/TurnExecutionHelper.php @@ -264,12 +264,14 @@ WHERE turntime < %s ORDER BY turntime ASC, `no` ASC', $autorunMode = false; $ai = null; + $turnObj->preprocessCommand(); + if($general->getVar('npc') >= 2 || ($autorun_user['limit_minutes']??false)){ $ai = new GeneralAI($turnObj->getGeneral()); } if(!$turnObj->processBlocked()){ - $turnObj->preprocessCommand(); + if($hasNationTurn){ if($ai){ $nationCommandObj = $ai->chooseNationTurn($nationCommandObj);