From f58736277f7506ac6742b465d2c86bd204b3dffe Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 21 Apr 2018 15:58:41 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AD=ED=84=B4=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_command.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hwe/func_command.php b/hwe/func_command.php index 485c1b57..4d2eee76 100644 --- a/hwe/func_command.php +++ b/hwe/func_command.php @@ -533,13 +533,11 @@ function processCommand($no) { if($general['npc'] >= 2 || $general['killturn'] > $admin['killturn']) { $query = "update general set recturn=turn0,resturn='FAIL',myset=3,con=0,killturn=killturn-1 where no='{$general['no']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - } elseif(intval($command[0]) == 0 && $session->userGrade < 5) { + } elseif($command[0] == 0) { $query = "update general set recturn=turn0,resturn='FAIL',myset=3,con=0,killturn=killturn-1 where no='{$general['no']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); - } else { - $query = "update general set recturn=turn0,resturn='FAIL',myset=3,con=0,killturn='{$admin['killturn']}' where no='{$general['no']}'"; - MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } + //연속턴 아닌경우 텀 리셋 if($general['term']%100 != $command[0]) { $query = "update general set term=0 where no='{$general['no']}'";