From f2d0020d928287d95c54481fb5c0f3b3364df281 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 27 Jan 2023 00:51:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=94=BC=EC=9E=A5=ED=8C=8C=EC=9E=A5?= =?UTF-8?q?=EC=9D=80=20=ED=94=BC=EC=9E=A5=ED=8C=8C=EC=9E=A5=EC=9D=84=20?= =?UTF-8?q?=EB=8C=80=EC=83=81=EC=9C=BC=EB=A1=9C=20=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=97=86=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_피장파장.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hwe/sammo/Command/Nation/che_피장파장.php b/hwe/sammo/Command/Nation/che_피장파장.php index 1f0e11fd..ebfd757f 100644 --- a/hwe/sammo/Command/Nation/che_피장파장.php +++ b/hwe/sammo/Command/Nation/che_피장파장.php @@ -59,6 +59,9 @@ class che_피장파장 extends Command\NationCommand if (!in_array($commandType, GameConst::$availableChiefCommand['전략'])) { return false; } + if($commandType == Util::getClassNameFromObj($this)){ + return false; + } $this->arg = [ @@ -253,7 +256,13 @@ class che_피장파장 extends Command\NationCommand $oneAvailableCommandName = null; + $thisClassName = Util::getClassNameFromObj($this); + foreach (GameConst::$availableChiefCommand['전략'] as $commandType) { + if($commandType == $thisClassName){ + continue; + } + $cmd = buildNationCommandClass($commandType, $generalObj, $this->env, new LastTurn()); $cmdName = $cmd->getName(); $remainTurn = 0;