From 5269962beb2c7558d6afae63fb9f5abc02a27484 Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 10 May 2015 16:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 2 +- mode/chess.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game/game.js b/game/game.js index 371e8c447..5de0d2fd3 100644 --- a/game/game.js +++ b/game/game.js @@ -7069,7 +7069,7 @@ window.play={}; modeconfig.push(ui.create.switcher('reverse_sort',get.config('reverse_sort'),ui.click.sidebar.reverse_sort));break; default:{ if(typeof lib.config.current_mode[i]==='function'){ - modeconfig.push(lib.config.current_mode[i](lib,get,ui)); + modeconfig.push(lib.config.current_mode[i](game,lib,get,ui)); } } } diff --git a/mode/chess.js b/mode/chess.js index 4c2a908e4..acd61db40 100644 --- a/mode/chess.js +++ b/mode/chess.js @@ -1122,7 +1122,7 @@ mode.chess={ player.chooseToMove(get.cardCount('sha',player),'是否发动【灵动】?'); "step 1" if(result.bool){ - player.logSkill('pianyi'); + player.logSkill('lingdong'); } } }, @@ -1386,14 +1386,14 @@ mode.chess={ '杀死对方阵营的角色可摸一张牌,杀死本方阵营无惩罚' }, config:['battle_number','ban_weak','free_choose','change_choice', - function(lib,get,ui){ + function(game,lib,get,ui){ var current=get.config('chess_character'); if(typeof current!=='boolean'){ game.saveConfig('chess_character',true); current=true; } return ui.create.switcher('chess_character',current,ui.click.sidebar.local2); - },function(lib,get,ui){ + },function(game,lib,get,ui){ var current=get.config('chessscroll_speed'); if(typeof current!=='number'){ game.saveConfig('chessscroll_speed',20,true);