From d6ab0661523dcd23dacfa133bfe51bb4749c61b7 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 21 Jul 2020 22:38:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=ED=98=B8=EA=B2=BD=EC=8B=9D=20?= =?UTF-8?q?=EB=B2=84=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/Nation/che_이호경식.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/Command/Nation/che_이호경식.php b/hwe/sammo/Command/Nation/che_이호경식.php index 4a741cca..12ed97a9 100644 --- a/hwe/sammo/Command/Nation/che_이호경식.php +++ b/hwe/sammo/Command/Nation/che_이호경식.php @@ -176,7 +176,7 @@ class che_이호경식 extends Command\NationCommand $broadcastMessage = "아국에 {$commandName}{$josaYiCommand} 발동되었습니다."; - $destNationGeneralList = $db->queryFirstColumn('SELECT no FROM general WHERE nation=%i AND no != %i', $nationID, $generalID); + $destNationGeneralList = $db->queryFirstColumn('SELECT no FROM general WHERE nation=%i AND no != %i', $destNationID, $generalID); foreach ($destNationGeneralList as $destNationGeneralID) { $destNationGeneralLogger = new ActionLogger($destNationGeneralID, $destNationID, $year, $month); $destNationGeneralLogger->pushGeneralActionLog($broadcastMessage, ActionLogger::PLAIN); @@ -197,6 +197,10 @@ class che_이호경식 extends Command\NationCommand 'state' => 1, ], '(me = %i AND you = %i) OR (you = %i AND me = %i)', $nationID, $destNationID, $nationID, $destNationID); + \sammo\SetNationFront($nationID); + \sammo\SetNationFront($destNationID); + + $this->setResultTurn(new LastTurn(static::getName(), $this->arg)); $general->applyDB($db);