buildGeneralCommandClass류 구현

This commit is contained in:
Hide_D committed 2018-10-06 04:08:43 +09:00
1 parent b94081c45b
commit 1660e563ab
4 files changed
+15 -11

No files matched your search

+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){