수몰을 아무 국가에나 쓸 수 있는 버그 수정
This commit is contained in:
@@ -29,15 +29,11 @@ class BattleGroundCity extends Constraint{
|
|||||||
$this->tested = true;
|
$this->tested = true;
|
||||||
|
|
||||||
$nationID = $this->general['nation'];
|
$nationID = $this->general['nation'];
|
||||||
$destNationID = $this->city['nation'];
|
$destNationID = $this->destCity['nation'];
|
||||||
if($destNationID == 0){
|
if($destNationID == 0){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->arg && $destNationID == $nationID){
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$diplomacy = $db->queryFirstField('SELECT state FROM diplomacy WHERE me = %i AND you = %i', $nationID, $destNationID);
|
$diplomacy = $db->queryFirstField('SELECT state FROM diplomacy WHERE me = %i AND you = %i', $nationID, $destNationID);
|
||||||
if($diplomacy == 0){
|
if($diplomacy == 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user