From b0b9904b7d11e7604748830de2f3e1bd68164d05 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 11 May 2023 02:55:13 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=84=B1=EB=B2=BD=EC=84=A0=EC=A0=9C?= =?UTF-8?q?=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=EC=97=90=EB=A7=8C=20=EC=84=B1?= =?UTF-8?q?=EB=B2=BD=EB=8F=84=20=EC=84=A0=EC=A0=9C=EA=B3=B5=EA=B2=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/DummyGeneral.php | 2 +- hwe/sammo/WarUnitCity.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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{