diff --git a/hwe/sammo/DummyGeneral.php b/hwe/sammo/DummyGeneral.php index 9e6acb2d..4996ebe4 100644 --- a/hwe/sammo/DummyGeneral.php +++ b/hwe/sammo/DummyGeneral.php @@ -37,7 +37,7 @@ class DummyGeneral extends General } } - public function setCrewType(GameUnitDetail $crewType){ + public function setCrewType(?GameUnitDetail $crewType){ $this->crewType = $crewType; } diff --git a/hwe/sammo/WarUnitCity.php b/hwe/sammo/WarUnitCity.php index df4a7fa2..ff688e84 100644 --- a/hwe/sammo/WarUnitCity.php +++ b/hwe/sammo/WarUnitCity.php @@ -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{