수몰을 아무 국가에나 쓸 수 있는 버그 수정

This commit is contained in:
2020-09-09 14:20:15 +09:00
parent 07765c8d44
commit bb7d1fc9ab
+1 -5
View File
@@ -29,15 +29,11 @@ class BattleGroundCity extends Constraint{
$this->tested = true;
$nationID = $this->general['nation'];
$destNationID = $this->city['nation'];
$destNationID = $this->destCity['nation'];
if($destNationID == 0){
return true;
}
if($this->arg && $destNationID == $nationID){
return true;
}
$db = DB::db();
$diplomacy = $db->queryFirstField('SELECT state FROM diplomacy WHERE me = %i AND you = %i', $nationID, $destNationID);
if($diplomacy == 0){