fix: 성벽 선제가 호출조차 되지 않는 버그 수정

This commit is contained in:
Hide_D committed 2023-05-12 00:07:01 +09:00
1 parent 2ad0c6e509
commit 18f9d87a29
7 files changed
+53 -20

No files matched your search

+13
View File
@@ -80,6 +80,13 @@ class WarUnitCity extends WarUnit{
function setSiege(){
$this->onSiege = true;
$this->currPhase = 0;
$this->prePhase = 0;
$this->bonusPhase = 0;
}
function isSiege(): bool{
return $this->onSiege;
}
function getDex(GameUnitDetail $crewType){
@@ -99,6 +106,12 @@ class WarUnitCity extends WarUnit{
function continueWar(&$noRice):bool{
//전투가 가능하면 true
$noRice = false;
//본 공성이 아닌 경우에는 한대만 맞아줌
if(!$this->onSiege){
return false;
}
if($this->getHP() <= 0){
return false;
}