백동 버그 수정

This commit is contained in:
2020-05-08 03:09:20 +09:00
parent 7bb6a9615c
commit ed3313b2bc
2 changed files with 3 additions and 3 deletions
@@ -72,8 +72,8 @@ class che_백성동원 extends Command\NationCommand{
$this->fullConditionConstraints=[ $this->fullConditionConstraints=[
ConstraintHelper::OccupiedCity(), ConstraintHelper::OccupiedCity(),
ConstraintHelper::BeChief(), ConstraintHelper::BeChief(),
ConstraintHelper::AllowDiplomacyStatus($this->generalObj->getNationID(), [ ConstraintHelper::DisallowDiplomacyStatus($this->generalObj->getNationID(), [
0 2, 7
], '전쟁중이 아닙니다.'), ], '전쟁중이 아닙니다.'),
ConstraintHelper::OccupiedDestCity(), ConstraintHelper::OccupiedDestCity(),
ConstraintHelper::AvailableStrategicCommand() ConstraintHelper::AvailableStrategicCommand()
@@ -53,7 +53,7 @@ class AllowDiplomacyStatus extends Constraint{
$db = DB::db(); $db = DB::db();
$state = $db->queryFirstField( $state = $db->queryFirstField(
'SELECT state FROM diplomacy WHERE me = %i AND `state` NOT IN %li LIMIT 1', 'SELECT state FROM diplomacy WHERE me = %i AND `state` IN %li LIMIT 1',
$this->nationID, $this->nationID,
$this->allowStatus $this->allowStatus
); );