버그 수정

This commit is contained in:
Hide_D committed 2019-09-21 01:38:29 +09:00
1 parent 7bebbe3a16
commit 45ed63ffe3
4 files changed
+17 -11

No files matched your search

+3 -1
View File
@@ -483,7 +483,7 @@ function getCoreTurn($nation, $level) {
}
function processCommand($no) {
function processCommand($no, $reduceTurn) {
$session = Session::getInstance();
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
@@ -561,6 +561,8 @@ function processCommand($no) {
$newKillturn = $general['killturn'] - 1;
} elseif($command[0] == 0) {
$newKillturn = $general['killturn'] - 1;
} elseif($reduceTurn = true){
$newKillturn = $general['killturn'] - 1;
} else {
$newKillturn = $killturn;
}