From b9e77dadd31338b9004620db4188dc90dc232644 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Thu, 11 May 2023 02:30:23 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=9C=EB=AE=AC=EB=A0=88=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EA=B2=B0=EA=B3=BC=EC=97=90=EC=84=9C=20warning=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_simulate_battle.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/j_simulate_battle.php b/hwe/j_simulate_battle.php index d0d9be30..d5cf09b9 100644 --- a/hwe/j_simulate_battle.php +++ b/hwe/j_simulate_battle.php @@ -446,7 +446,9 @@ function simulateBattle( return null; } - $defenderRice += $defender->getVar('rice'); + if($defender instanceof WarUnitGeneral){ + $defenderRice += $defender->getVar('rice'); + } $iterDefender->next(); return $defender;