From f66b5c91fcd7a922176aa85e9e74eeb6fa9ccce9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 11 May 2020 01:24:34 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=9C=EB=B3=91=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EB=A1=9C=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/Command/General/che_출병.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/Command/General/che_출병.php b/hwe/sammo/Command/General/che_출병.php index 2ef8e1ea..c70a1109 100644 --- a/hwe/sammo/Command/General/che_출병.php +++ b/hwe/sammo/Command/General/che_출병.php @@ -198,7 +198,15 @@ class che_출병 extends Command\GeneralCommand $defenderNationID = $this->destCity['nation']; if ($attackerNationID == $defenderNationID) { - $logger->pushGeneralActionLog("본국입니다. {$defenderCityName}{$josaRo} 으로 이동합니다. <1>$date"); + $defenderCityName = $this->destCity['name']; + $josaRo = JosaUtil::pick($defenderCityName, '로'); + if($this->arg['destCityID'] == $defenderCityID){ + $logger->pushGeneralActionLog("본국입니다. {$defenderCityName}{$josaRo} 으로 이동합니다. <1>$date"); + } + else{ + $logger->pushGeneralActionLog("가까운 경로에 적군 도시가 없습니다. {$defenderCityName}{$josaRo} 으로 이동합니다. <1>$date"); + } + $this->alternative = new che_이동($general, $this->env, ['destCityID' => $defenderCityID]); return false; }