forked from devsam/core
백동 버그 수정
This commit is contained in:
@@ -72,8 +72,8 @@ class che_백성동원 extends Command\NationCommand{
|
||||
$this->fullConditionConstraints=[
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::AllowDiplomacyStatus($this->generalObj->getNationID(), [
|
||||
0
|
||||
ConstraintHelper::DisallowDiplomacyStatus($this->generalObj->getNationID(), [
|
||||
2, 7
|
||||
], '전쟁중이 아닙니다.'),
|
||||
ConstraintHelper::OccupiedDestCity(),
|
||||
ConstraintHelper::AvailableStrategicCommand()
|
||||
|
||||
@@ -53,7 +53,7 @@ class AllowDiplomacyStatus extends Constraint{
|
||||
$db = DB::db();
|
||||
|
||||
$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->allowStatus
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user