버그 수정

This commit is contained in:
2019-04-24 01:17:21 +09:00
parent 3f2cf23f47
commit 5d1b39ca49
29 changed files with 79 additions and 51 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class che_발령 extends Command\NationCommand{
if(!key_exists('destCityID', $this->arg)){
return false;
}
if(!key_exists($this->arg['destCityID'], CityConst::all())){
if(CityConst::byID($this->arg['destCityID']) === null){
return false;
}
$destGeneralID = $this->arg['destGeneralID'];
@@ -8,13 +8,15 @@ use \sammo\{
GameConst,
LastTurn,
GameUnitConst,
Command
Command,
Message, MessageTarget
};
use function \sammo\{
getDomesticExpLevelBonus,
CriticalRatioDomestic,
CriticalScoreEx
CriticalScoreEx,
GetImageURL
};
use \sammo\Constraint\Constraint;
+3 -1
View File
@@ -15,6 +15,8 @@ class 휴식 extends Command\NationCommand{
protected function init(){
//아무것도 하지 않음
$this->runnableConstraints=[];
}
public function getPreReqTurn():int{
@@ -24,7 +26,7 @@ class 휴식 extends Command\NationCommand{
public function getPostReqTurn():int{
return 0;
}
public function getCost():array{
return [0, 0];
}