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

This commit is contained in:
2023-05-11 01:58:16 +09:00
parent 265a5ebf5c
commit fd6405ea97
6 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function processWar(string $warSeed, General $attackerGeneral, array $rawAttacke
$defenderList[] = $defenderCandidate;
}
if(count($defenderList) == 0 && extractBattleOrder($city, $attacker) > 0){
if(count($defenderList) && extractBattleOrder($city, $attacker) > 0){
$defenderList[] = $city;
}