버그 수정
This commit is contained in:
@@ -51,8 +51,17 @@ class che_감축 extends Command\NationCommand{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$this->setCity();
|
||||
$this->setNation(['gold', 'rice', 'capset', 'capital']);
|
||||
|
||||
if(!$this->nation['capital']){
|
||||
$this->fullConditionConstraints=[
|
||||
ConstraintHelper::AlwaysFail('방랑상태에서는 불가능합니다.')
|
||||
];
|
||||
return;
|
||||
}
|
||||
|
||||
$this->setDestCity($this->nation['capital']);
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
|
||||
@@ -52,6 +52,14 @@ class che_증축 extends Command\NationCommand{
|
||||
|
||||
$this->setCity();
|
||||
$this->setNation(['gold', 'rice', 'capset', 'capital']);
|
||||
|
||||
if(!$this->nation['capital']){
|
||||
$this->fullConditionConstraints=[
|
||||
ConstraintHelper::AlwaysFail('방랑상태에서는 불가능합니다.')
|
||||
];
|
||||
return;
|
||||
}
|
||||
|
||||
$this->setDestCity($this->nation['capital']);
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
|
||||
Reference in New Issue
Block a user