전방 발령에 공백지 배제
This commit is contained in:
@@ -759,6 +759,9 @@ class GeneralAI
|
|||||||
foreach($this->userWarGenerals as $userGeneral){
|
foreach($this->userWarGenerals as $userGeneral){
|
||||||
$generalID = $userGeneral->getID();
|
$generalID = $userGeneral->getID();
|
||||||
$cityID = $userGeneral->getCityID();
|
$cityID = $userGeneral->getCityID();
|
||||||
|
if(key_exists($cityID, $this->nationCities)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(key_exists($cityID, $this->frontCities)){
|
if(key_exists($cityID, $this->frontCities)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -995,6 +998,9 @@ class GeneralAI
|
|||||||
if(key_exists($cityID, $this->frontCities)){
|
if(key_exists($cityID, $this->frontCities)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if(key_exists($cityID, $this->nationCities)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if($npcGeneral->getVar('crew') < $this->nationPolicy->minWarCrew){
|
if($npcGeneral->getVar('crew') < $this->nationPolicy->minWarCrew){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user