From a7ad77f433abe139085fd79d7350ecc75c678eee Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 20 Jun 2020 15:09:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EA=B7=BC=20=EC=A0=84=ED=88=AC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A6=88=20=EA=B3=84=EC=82=B0=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/WarUnitGeneral.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/WarUnitGeneral.php b/hwe/sammo/WarUnitGeneral.php index 7fdf51ca..4271ef9d 100644 --- a/hwe/sammo/WarUnitGeneral.php +++ b/hwe/sammo/WarUnitGeneral.php @@ -54,8 +54,9 @@ class WarUnitGeneral extends WarUnit{ else if($oppose !== null){ $semiTurn = $oppose->getGeneral()->getTurnTime(); } + $phase = $this->getRealPhase(); $semiTurn = substr($semiTurn, 0, strlen($semiTurn) - 2); - $semiTurn .= sprintf("%02d", Util::valueFit($this->currPhase, 0, 99)); + $semiTurn .= sprintf("%02d", Util::valueFit($phase, 0, 99)); $general->setVar('recent_war', $semiTurn); }