v1.9.95.9

This commit is contained in:
Spmario233 2019-12-05 23:22:10 +08:00 committed by GitHub
parent cd2da9e575
commit 945a369920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 32 deletions

View File

@ -6451,6 +6451,13 @@
return this.childNodes[row].childNodes[col]; return this.childNodes[row].childNodes[col];
} }
}; };
Array.prototype.filterInD=function(){
var list=[];
for(var i=0;i<this.length;i++){
if(get.position(this[i])=='d') list.push(this[i]);
}
return list;
};
Array.prototype.find=function(item){ Array.prototype.find=function(item){
return this.indexOf(item); return this.indexOf(item);
}; };
@ -11045,6 +11052,7 @@
}, },
chooseToUse:function(){ chooseToUse:function(){
"step 0" "step 0"
if(event.responded) return;
if(game.modeSwapPlayer&&!_status.auto&&player.isUnderControl()&&!lib.filter.wuxieSwap(event)){ if(game.modeSwapPlayer&&!_status.auto&&player.isUnderControl()&&!lib.filter.wuxieSwap(event)){
game.modeSwapPlayer(player); game.modeSwapPlayer(player);
} }
@ -20160,7 +20168,7 @@
if(mode!='identity'){ if(mode!='identity'){
if(player&&this.side!=player.side) return false; if(player&&this.side!=player.side) return false;
} }
if(this.isZhu) return true; if(this.isZhu==true) return true;
for(var i in this.storage){ for(var i in this.storage){
if(i.indexOf('zhuSkill_')==0&&this.storage[i].contains(skill)) return true; if(i.indexOf('zhuSkill_')==0&&this.storage[i].contains(skill)) return true;
} }
@ -22514,15 +22522,8 @@
if(info.filterCard!=undefined){ if(info.filterCard!=undefined){
this.filterCard=function(card,player,event){ this.filterCard=function(card,player,event){
if(!info.ignoreMod&&player){ if(!info.ignoreMod&&player){
if(!event) event=_status.event; var mod=game.checkMod(card,player,'unchanged','cardEnabled2',player);
if(event.name=='chooseToUse'){ if(mod!='unchanged') return mod;
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player);
if(mod!='unchanged') return mod;
}
if(event.name=='chooseToRespond'){
var mod=game.checkMod(card,player,'unchanged','cardRespondable',player);
if(mod!='unchanged') return mod;
}
} }
return get.filter(info.filterCard)(card,player,event); return get.filter(info.filterCard)(card,player,event);
}; };
@ -23300,6 +23301,8 @@
cardEnabled:function(card,player,event){ cardEnabled:function(card,player,event){
card=get.autoViewAs(card,null,player); card=get.autoViewAs(card,null,player);
if(player==undefined) player=_status.event.player; if(player==undefined) player=_status.event.player;
var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player);
if(mod2!='unchanged') return mod2;
if(event==='forceEnable'){ if(event==='forceEnable'){
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player); var mod=game.checkMod(card,player,'unchanged','cardEnabled',player);
if(mod!='unchanged') return mod; if(mod!='unchanged') return mod;
@ -23324,6 +23327,8 @@
} }
} }
if(player==undefined) player=_status.event.player; if(player==undefined) player=_status.event.player;
var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player);
if(mod2!='unchanged') return mod2;
var mod=game.checkMod(card,player,'unchanged','cardRespondable',player); var mod=game.checkMod(card,player,'unchanged','cardRespondable',player);
if(mod!='unchanged') return mod; if(mod!='unchanged') return mod;
return true; return true;
@ -24038,6 +24043,8 @@
player.chooseToUse({ player.chooseToUse({
filterCard:function(card,player,event){ filterCard:function(card,player,event){
event=event||_status.event; event=event||_status.event;
var mod2=game.checkMod(card,player,'unchanged','cardEnabled2',player);
if(mod2!='unchanged') return mod2;
var mod=game.checkMod(card,player,'unchanged','cardSavable',player); var mod=game.checkMod(card,player,'unchanged','cardSavable',player);
if(mod!='unchanged') return mod; if(mod!='unchanged') return mod;
var savable=get.info(card).savable; var savable=get.info(card).savable;

View File

@ -1,40 +1,43 @@
window.noname_update={ window.noname_update={
version:'1.9.95.8.2', version:'1.9.95.9',
update:'1.9.95.8.1', update:'1.9.95.8',
changeLog:[ changeLog:[
'紧急修复BUG', '响应杀的方式改为【使用】闪',
//'欢乐卡牌写轮眼写法调整、漩涡面具、DIY王允、段珪的部分技能小调整', '修复BUG',
], ],
files:[ files:[
//'card/extra.js', 'card/extra.js',
'card/huanlekapai.js', //'card/huanlekapai.js',
//'card/sp.js', 'card/sp.js',
//'card/standard.js', 'card/standard.js',
//'card/swd.js', //'card/swd.js',
//'card/guozhan.js', 'card/guozhan.js',
//'card/gwent.js', //'card/gwent.js',
'character/diy.js', 'character/diy.js',
//'character/extra.js', 'character/extra.js',
'character/hearth.js',
//'character/gujian.js', //'character/gujian.js',
//'character/gwent.js', //'character/gwent.js',
//'character/mobile.js', //'character/mobile.js',
//'character/mtg.js', //'character/mtg.js',
//'character/old.js', 'character/old.js',
//'character/refresh.js', 'character/refresh.js',
//'character/shenhua.js', 'character/shenhua.js',
'character/sp.js', 'character/sp.js',
//'character/tw.js', //'character/tw.js',
//'character/standard.js', 'character/standard.js',
//'character/swd.js', 'character/swd.js',
//'character/xinghuoliaoyuan.js', 'character/xianjian.js',
//'character/yijiang.js', 'character/xinghuoliaoyuan.js',
//'mode/identity.js', 'character/yijiang.js',
'character/yxs.js',
'mode/identity.js',
//'mode/doudizhu.js', //'mode/doudizhu.js',
//'mode/guozhan.js', 'mode/guozhan.js',
//'mode/single.js', 'mode/single.js',
//'mode/versus.js', //'mode/versus.js',
//'mode/boss.js', 'mode/boss.js',
//'game/game.js', 'game/game.js',
//'game/config.js', //'game/config.js',
//'game/package.js', //'game/package.js',
//'game/asset.js', //'game/asset.js',