천도 추가

This commit is contained in:
2020-04-14 01:49:40 +09:00
parent 33014dbd7d
commit 85389c4a60
11 changed files with 548 additions and 9 deletions
+1 -3
View File
@@ -31,9 +31,7 @@ class HasRoute extends Constraint{
$db = DB::db();
$allowedNationList = $db->queryFirstColumn('SELECT you FROM diplomacy WHERE state = 0 AND me = %i', $this->general['nation']);
$allowedNationList[] = $this->general['nation'];
$allowedNationList[] = 0;
$allowedNationList = [$this->general['nation']];
$distanceList = \sammo\searchDistanceListToDest($this->general['city'], $this->destCity['city'], $allowedNationList);
if(!$distanceList){