diff --git a/hwe/sammo/Constraint/BattleGroundCity.php b/hwe/sammo/Constraint/BattleGroundCity.php index a9dc5777..d6af692d 100644 --- a/hwe/sammo/Constraint/BattleGroundCity.php +++ b/hwe/sammo/Constraint/BattleGroundCity.php @@ -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){