From fe30440675e5994f31fdbbb168bf04fef9edc39a Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 12 Apr 2022 22:27:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B6=81=EB=B3=91=20=EC=88=98=EB=B9=84?= =?UTF-8?q?=EC=8B=9C=20=EC=84=A0=EC=A0=9C=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20?= =?UTF-8?q?=EC=A0=84=ED=88=AC=20=EB=A1=9C=EA=B7=B8=EA=B0=80=20=EB=91=90?= =?UTF-8?q?=EB=B2=88=20=EC=B6=9C=EB=A0=A5=EB=90=98=EB=8A=94=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/process_war.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hwe/process_war.php b/hwe/process_war.php index dd3a5771..f2d2a59f 100644 --- a/hwe/process_war.php +++ b/hwe/process_war.php @@ -256,7 +256,7 @@ function processWar_NG( } } - if ($defender->getPhase() == 0) { + if ($defender->getPhase() == 0 && $defender->getOppose() == null) { $defender->setPrePhase($attacker->getPhase()); $attacker->addTrain(1); @@ -421,7 +421,7 @@ function processWar_NG( $defender->getLogger()->pushGeneralActionLog("전멸했습니다.", ActionLogger::PLAIN); } - if ($attacker->getPhase() == $attacker->getMaxPhase()) { + if ($attacker->getPhase() >= $attacker->getMaxPhase()) { break; } @@ -434,7 +434,7 @@ function processWar_NG( } } - if ($attacker->getPhase() == $attacker->getMaxPhase()) { + if ($attacker->getPhase() >= $attacker->getMaxPhase()) { //마지막 페이즈의 전투 마무리 $attacker->logBattleResult(); $defender->logBattleResult();