fix: 시뮬레이션 결과에서 warning 제거

This commit is contained in:
2023-05-11 02:30:23 +09:00
parent e57e387353
commit b9e77dadd3
+3 -1
View File
@@ -446,7 +446,9 @@ function simulateBattle(
return null;
}
$defenderRice += $defender->getVar('rice');
if($defender instanceof WarUnitGeneral){
$defenderRice += $defender->getVar('rice');
}
$iterDefender->next();
return $defender;