버그 수정

This commit is contained in:
2020-05-04 20:01:23 +09:00
parent 76ac6cf5b5
commit 91f2be6759
12 changed files with 39 additions and 8 deletions
+5 -1
View File
@@ -95,12 +95,16 @@ class che_등용 extends Command\GeneralCommand{
ConstraintHelper::ReqGeneralGold($reqGold),
ConstraintHelper::ReqGeneralRice($reqRice),
];
if($this->destGeneralObj->getVar('officer_level') == 12){
$this->fullConditionConstraints[] = ConstraintHelper::AlwaysFail('군주에게는 등용장을 보낼 수 없습니다.');
}
}
public function canDisplay():bool{
return $this->env['join_mode'] !== 'onlyRandom';
}
public function getCost():array{
$env = $this->env;
if(!$this->isArgValid){