This commit is contained in:
libccy 2017-04-08 21:33:19 +08:00
parent 4d9697b1c4
commit 4a21cdd3da
4 changed files with 17 additions and 6 deletions

View File

@ -1411,7 +1411,7 @@ card.standard={
direct:true,
audio:true,
filter:function(event,player){
return player.countCards('he')>2;
return player.countCards('he')>2&&event.target.isAlive();
},
content:function(){
"step 0"

View File

@ -243,7 +243,7 @@ character.old={
return false;
},
filter:function(event,player){
return event.card.name=='sha'&&(get.color(event.card)=='red'||event.player.hasSkill('jiu'));
return event.card&&event.card.name=='sha'&&(get.color(event.card)=='red'||event.player.hasSkill('jiu'));
},
content:function(){
player.loseMaxHp();

View File

@ -31125,6 +31125,14 @@
var node=ui.create.div('.menubutton.large','获取扩展',start.firstChild,clickMode);
node.link=page;
node.mode='get';
page.listen(function(){
if(!page.currenttimeout){
var active=page.querySelector('.videonode.current');
if(active){
active.classList.remove('current');
}
}
});
var importextensionexpanded=false;
page.style.paddingBottom='10px';
var importExtension;
@ -31188,12 +31196,14 @@
var clickExtension=function(){
var active=this.parentNode.querySelector('.videonode.current');
if(active){
if(active&&active!=this){
active.classList.remove('current');
}
if(active!=this){
this.classList.add('current');
}
this.classList.add('current');
clearTimeout(page.currenttimeout);
page.currenttimeout=setTimeout(function(){
delete page.currenttimeout;
},200);
};
var downloadExtension=function(e){
if((this.innerHTML!='下载扩展'&&this.innerHTML!='更新扩展')||!window.JSZip) return;

View File

@ -17,6 +17,7 @@ window.noname_update={
// 'character/*',
'character/hearth.js',
'character/gwent.js',
'character/old.js',
// 'mode/boss.js',
// 'mode/versus.js',
// 'mode/guozhan.js',