diff --git a/hwe/sammo/Constraint/AllowDiplomacyStatus.php b/hwe/sammo/Constraint/AllowDiplomacyStatus.php index 07fca170..eb1704be 100644 --- a/hwe/sammo/Constraint/AllowDiplomacyStatus.php +++ b/hwe/sammo/Constraint/AllowDiplomacyStatus.php @@ -53,9 +53,9 @@ class AllowDiplomacyStatus extends Constraint{ $db = DB::db(); $state = $db->queryFirstField( - 'SELECT state FROM diplomacy WHERE me = %i AND `state` IN %li LIMIT 1', + 'SELECT state FROM diplomacy WHERE me = %i AND `state` NOT IN %li LIMIT 1', $this->nationID, - array_keys($this->allowStatus) + $this->allowStatus ); if($state !== null){ return true;