fix: 성벽선제 동작 개시

This commit is contained in:
2023-05-11 02:15:27 +09:00
parent fd6405ea97
commit 4cd273b89f
3 changed files with 31 additions and 13 deletions
+10
View File
@@ -82,6 +82,10 @@ class WarUnitCity extends WarUnit{
$this->onSiege = true;
}
function isSiege(): bool{
return $this->onSiege;
}
function getDex(GameUnitDetail $crewType){
return ($this->cityTrainAtmos - 60) * 7200;
}
@@ -99,6 +103,12 @@ class WarUnitCity extends WarUnit{
function continueWar(&$noRice):bool{
//전투가 가능하면 true
$noRice = false;
//본 공성이 아닌 경우에는 한대만 맞아줌
if(!$this->onSiege){
return false;
}
if($this->getHP() <= 0){
return false;
}