forked from devsam/core
game: 성벽선제인 경우에만 성벽도 선제공격
This commit is contained in:
@@ -37,7 +37,7 @@ class DummyGeneral extends General
|
||||
}
|
||||
}
|
||||
|
||||
public function setCrewType(GameUnitDetail $crewType){
|
||||
public function setCrewType(?GameUnitDetail $crewType){
|
||||
$this->crewType = $crewType;
|
||||
}
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user