fix: 공백지에 건국이 완료된 경우 장수 생성이 되지 않는 버그 수정
This commit is contained in:
@@ -221,8 +221,7 @@ class Join extends \sammo\BaseAPI
|
|||||||
// 공백지에서만 태어나게
|
// 공백지에서만 태어나게
|
||||||
$cities = $db->queryFirstColumn('SELECT city FROM city where `level`>=5 and `level`<=6 and nation=0');
|
$cities = $db->queryFirstColumn('SELECT city FROM city where `level`>=5 and `level`<=6 and nation=0');
|
||||||
if (!$cities) {
|
if (!$cities) {
|
||||||
$db->queryFirstColumn('SELECT city FROM city where `level`>=5 and `level`<=6');
|
$cities = $db->queryFirstColumn('SELECT city FROM city where `level`>=5 and `level`<=6');
|
||||||
$cities = $db->queryFirstField("SELECT city from city where `level`>=5 and `level`<=6");
|
|
||||||
}
|
}
|
||||||
$city = $rng->choice($cities);
|
$city = $rng->choice($cities);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user