From 6a88a72b0286ca59597b0cd3064d9f71dcf6ce1d Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 13 Aug 2016 22:39:31 +0800 Subject: [PATCH] check --- game/game.js | 58 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/game/game.js b/game/game.js index 692885ded..13a9a1a7d 100755 --- a/game/game.js +++ b/game/game.js @@ -12031,6 +12031,7 @@ return this.getParent()._trigger; }, backup:function(skill){ + delete this._cardRange; this._backup={ filterButton:this.filterButton, selectButton:this.selectButton, @@ -12078,6 +12079,7 @@ } }, restore:function(){ + delete this._cardRange; if(this._backup){ this.filterButton=this._backup.filterButton; this.selectButton=this._backup.selectButton; @@ -12105,10 +12107,10 @@ }, trigger:function(name){ if(_status.video) return; - if(!lib.hookmap[name]) return; if(name=='gameStart'){ _status.gameStarted=true; } + if(!lib.hookmap[name]) return; var event=this; var start=event.player||game.me||game.players[0]; if(!game.players.contains(start)){ @@ -17902,6 +17904,7 @@ if(event.filterButton){ var dialog=event.dialog; range=get.select(event.selectButton); + var selectableButtons=false; if(range[0]!=range[1]||range[0]>1) auto=false; for(i=0;i1) auto=false; for(i=0;i1) auto=false; for(i=0;i