fix: 성벽선제 동작 개시

This commit is contained in:
Hide_D committed 2023-05-11 02:15:27 +09:00
1 parent fd6405ea97
commit 4cd273b89f
3 files changed
+31 -13

No files matched your search

+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;
}