fix: 피장파장은 피장파장을 대상으로 할 수 없음

This commit is contained in:
2023-01-27 00:51:12 +09:00
parent 67f3004eb0
commit f2d0020d92
@@ -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;