버그 수정

This commit is contained in:
2019-09-21 01:38:29 +09:00
parent 7bebbe3a16
commit 45ed63ffe3
4 changed files with 17 additions and 11 deletions
+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;
}