fix: 피장파장은 피장파장을 대상으로 할 수 없음
This commit is contained in:
@@ -59,6 +59,9 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
if (!in_array($commandType, GameConst::$availableChiefCommand['전략'])) {
|
if (!in_array($commandType, GameConst::$availableChiefCommand['전략'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if($commandType == Util::getClassNameFromObj($this)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->arg = [
|
$this->arg = [
|
||||||
@@ -253,7 +256,13 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
|
|
||||||
$oneAvailableCommandName = null;
|
$oneAvailableCommandName = null;
|
||||||
|
|
||||||
|
$thisClassName = Util::getClassNameFromObj($this);
|
||||||
|
|
||||||
foreach (GameConst::$availableChiefCommand['전략'] as $commandType) {
|
foreach (GameConst::$availableChiefCommand['전략'] as $commandType) {
|
||||||
|
if($commandType == $thisClassName){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$cmd = buildNationCommandClass($commandType, $generalObj, $this->env, new LastTurn());
|
$cmd = buildNationCommandClass($commandType, $generalObj, $this->env, new LastTurn());
|
||||||
$cmdName = $cmd->getName();
|
$cmdName = $cmd->getName();
|
||||||
$remainTurn = 0;
|
$remainTurn = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user