수몰을 아무 국가에나 쓸 수 있는 버그 수정
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user