game: 성벽선제인 경우에만 성벽도 선제공격

This commit is contained in:
2023-05-11 02:55:13 +09:00
parent 03f19ae608
commit b0b9904b7d
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class DummyGeneral extends General
}
}
public function setCrewType(GameUnitDetail $crewType){
public function setCrewType(?GameUnitDetail $crewType){
$this->crewType = $crewType;
}
+3
View File
@@ -84,6 +84,9 @@ class WarUnitCity extends WarUnit{
$this->currPhase = 0;
$this->prePhase = 0;
$this->bonusPhase = 0;
/** @var DummyGeneral $general */
$general = $this->general;
$general->setCrewType(null);
}
function isSiege(): bool{