턴 실행 순서 조정

This commit is contained in:
2020-05-08 03:31:17 +09:00
parent 62872b34c2
commit 25d2824478
+3 -1
View File
@@ -264,12 +264,14 @@ WHERE turntime < %s ORDER BY turntime ASC, `no` ASC',
$autorunMode = false; $autorunMode = false;
$ai = null; $ai = null;
$turnObj->preprocessCommand();
if($general->getVar('npc') >= 2 || ($autorun_user['limit_minutes']??false)){ if($general->getVar('npc') >= 2 || ($autorun_user['limit_minutes']??false)){
$ai = new GeneralAI($turnObj->getGeneral()); $ai = new GeneralAI($turnObj->getGeneral());
} }
if(!$turnObj->processBlocked()){ if(!$turnObj->processBlocked()){
$turnObj->preprocessCommand();
if($hasNationTurn){ if($hasNationTurn){
if($ai){ if($ai){
$nationCommandObj = $ai->chooseNationTurn($nationCommandObj); $nationCommandObj = $ai->chooseNationTurn($nationCommandObj);