buildGeneralCommandClass류 구현

This commit is contained in:
2018-10-06 04:08:43 +09:00
parent b94081c45b
commit 1660e563ab
4 changed files with 15 additions and 11 deletions
+1 -3
View File
@@ -75,9 +75,7 @@ class TurnExecutionHelper
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
$commandClass = getNationCommandClass($commandClassName);
/** @var \sammo\Command\NationCommand $commandObj */
$commandObj = new $commandClass($general, $gameStor->getAll(true), $commandLast, $commandArg);
$commandObj = buildNationCommandClass($commandClassName, $general, $gameStor->getAll(true), $commandLast, $commandArg);
$failReason = $commandObj->testReservable();
if($failReason){