턴 실행 순서 조정
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user