버그 수정
This commit is contained in:
@@ -253,7 +253,7 @@ abstract class BaseCommand{
|
||||
'destNation'=>$this->destNation,
|
||||
];
|
||||
|
||||
$this->reasonNotReservable = Constraint::testAll($this->reservableConstraints, $constraintInput);
|
||||
$this->reasonNotReservable = Constraint::testAll($this->reservableConstraints??[], $constraintInput);
|
||||
$this->reservable = $this->reasonNotReservable === null;
|
||||
return $this->reasonNotReservable;
|
||||
}
|
||||
@@ -289,7 +289,7 @@ abstract class BaseCommand{
|
||||
'destNation'=>$this->destNation,
|
||||
];
|
||||
|
||||
$this->reasonNotRunnable = Constraint::testAll($this->runnableConstraints, $constraintInput);
|
||||
$this->reasonNotRunnable = Constraint::testAll($this->runnableConstraints??[], $constraintInput);
|
||||
$this->runnable = $this->reasonNotRunnable === null;
|
||||
return $this->reasonNotRunnable;
|
||||
|
||||
|
||||
@@ -131,6 +131,8 @@ class che_강행 extends Command\GeneralCommand{
|
||||
$general->checkStatChange();
|
||||
$general->applyDB($db);
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ class che_건국 extends Command\GeneralCommand{
|
||||
'level'=>1,
|
||||
'type'=>$nationType,
|
||||
'capital'=>$general->getCityID()
|
||||
], 'nation=%i', $destNationID);
|
||||
], 'nation=%i', $general->getNationID());
|
||||
|
||||
refreshNationStaticInfo();
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace sammo\Command\General;
|
||||
use \sammo\Command;
|
||||
use \sammo\Util;
|
||||
use \sammo\JosaUtil;
|
||||
use \sammo\LastTurn;
|
||||
|
||||
class 휴식 extends Command\GeneralCommand{
|
||||
static protected $actionName = '휴식';
|
||||
@@ -13,7 +14,8 @@ class 휴식 extends Command\GeneralCommand{
|
||||
}
|
||||
|
||||
protected function init(){
|
||||
//아무것도 하지 않음
|
||||
$this->runnableConstraints=[
|
||||
];
|
||||
}
|
||||
|
||||
public function getCost():array{
|
||||
|
||||
Reference in New Issue
Block a user