Add files via upload
This commit is contained in:
parent
dcbf932038
commit
407ddd2e28
95
game/game.js
95
game/game.js
|
@ -22603,12 +22603,19 @@
|
||||||
if(info.filterTarget!=undefined) this.filterTarget=get.filter(info.filterTarget);
|
if(info.filterTarget!=undefined) this.filterTarget=get.filter(info.filterTarget);
|
||||||
if(info.selectTarget!=undefined) this.selectTarget=info.selectTarget;
|
if(info.selectTarget!=undefined) this.selectTarget=info.selectTarget;
|
||||||
if(info.filterCard!=undefined){
|
if(info.filterCard!=undefined){
|
||||||
|
if(info.ignoreMod) this.ignoreMod=true;
|
||||||
|
this.filterCard2=get.filter(info.filterCard);
|
||||||
this.filterCard=function(card,player,event){
|
this.filterCard=function(card,player,event){
|
||||||
if(!info.ignoreMod&&player){
|
var evt=event||_status.event;
|
||||||
|
if(!evt.ignoreMod&&player){
|
||||||
var mod=game.checkMod(card,player,'unchanged','cardEnabled2',player);
|
var mod=game.checkMod(card,player,'unchanged','cardEnabled2',player);
|
||||||
if(mod!='unchanged') return mod;
|
if(mod!='unchanged') return mod;
|
||||||
|
if(evt._backup&&evt._backup.filterCard){
|
||||||
|
var cardx=get.autoViewAs(lib.skill[evt.skill].viewAs,ui.selected.cards.concat([card]));
|
||||||
|
if(!get.filter(evt._backup.filterCard)(cardx,player,evt)) return false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return get.filter(info.filterCard)(card,player,event);
|
return get.filter(evt.filterCard2).apply(this,arguments);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if(info.selectCard!=undefined) this.selectCard=info.selectCard;
|
if(info.selectCard!=undefined) this.selectCard=info.selectCard;
|
||||||
|
@ -22663,6 +22670,8 @@
|
||||||
this._skillChoice=this._backup._skillChoice;
|
this._skillChoice=this._backup._skillChoice;
|
||||||
}
|
}
|
||||||
delete this.skill;
|
delete this.skill;
|
||||||
|
delete this.ignoreMod;
|
||||||
|
delete this.filterCard2;
|
||||||
},
|
},
|
||||||
isMine:function(){
|
isMine:function(){
|
||||||
return (this.player&&this.player==game.me&&!_status.auto&&!this.player.isMad());
|
return (this.player&&this.player==game.me&&!_status.auto&&!this.player.isMad());
|
||||||
|
@ -23455,9 +23464,15 @@
|
||||||
return (_status.event._aiexclude.contains(card)==false);
|
return (_status.event._aiexclude.contains(card)==false);
|
||||||
},
|
},
|
||||||
filterCard:function(card,player,event){
|
filterCard:function(card,player,event){
|
||||||
if(get.info(card).toself&&!lib.filter.targetEnabled(card,player,player)) return false;
|
var info=get.info(card);
|
||||||
|
//if(info.toself&&!lib.filter.targetEnabled(card,player,player)) return false;
|
||||||
|
var filterTarget=(event&&event.filterTarget)?event.filterTarget:lib.filter.filterTarget;
|
||||||
return (lib.filter.cardEnabled(card,player,event)&&
|
return (lib.filter.cardEnabled(card,player,event)&&
|
||||||
lib.filter.cardUsable(card,player,event));
|
lib.filter.cardUsable(card,player,event)&&
|
||||||
|
(info.notarget||game.hasPlayer(function(current){
|
||||||
|
return filterTarget(card,player,current);
|
||||||
|
}))
|
||||||
|
);
|
||||||
},
|
},
|
||||||
targetEnabled:function(card,player,target){
|
targetEnabled:function(card,player,target){
|
||||||
if(!card) return false;
|
if(!card) return false;
|
||||||
|
@ -23876,7 +23891,7 @@
|
||||||
init:function(player,skill){
|
init:function(player,skill){
|
||||||
var skills=player.getSkills(true,false);
|
var skills=player.getSkills(true,false);
|
||||||
for(var i=0;i<skills.length;i++){
|
for(var i=0;i<skills.length;i++){
|
||||||
if(get.is.locked(skills[i])){
|
if(get.is.locked(skills[i])||lib.skill[skills[i]].charlotte){
|
||||||
skills.splice(i--,1);
|
skills.splice(i--,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23908,40 +23923,40 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
baiban:{
|
baiban:{
|
||||||
init:function (player,skill){
|
init:function (player,skill){
|
||||||
var skills=player.getSkills(true,false);
|
var skills=player.getSkills(true,false);
|
||||||
for(var i=0;i<skills.length;i++){
|
for(var i=0;i<skills.length;i++){
|
||||||
if(get.skills[i]){
|
if(get.skills[i]||lib.skill[skills[i]].charlotte){
|
||||||
skills.splice(i--,1);
|
skills.splice(i--,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.disableSkill(skill,skills);
|
player.disableSkill(skill,skills);
|
||||||
},
|
},
|
||||||
onremove:function (player,skill){
|
onremove:function (player,skill){
|
||||||
player.enableSkill(skill);
|
player.enableSkill(skill);
|
||||||
},
|
},
|
||||||
mark:true,
|
mark:true,
|
||||||
locked:true,
|
locked:true,
|
||||||
intro:{
|
intro:{
|
||||||
content:function (storage,player,skill){
|
content:function (storage,player,skill){
|
||||||
var list=[];
|
var list=[];
|
||||||
for(var i in player.disabledSkills){
|
for(var i in player.disabledSkills){
|
||||||
if(player.disabledSkills[i].contains(skill)){
|
if(player.disabledSkills[i].contains(skill)){
|
||||||
list.push(i)
|
list.push(i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(list.length){
|
if(list.length){
|
||||||
var str='失效技能:';
|
var str='失效技能:';
|
||||||
for(var i=0;i<list.length;i++){
|
for(var i=0;i<list.length;i++){
|
||||||
if(lib.translate[list[i]+'_info']){
|
if(lib.translate[list[i]+'_info']){
|
||||||
str+=get.translation(list[i])+'、';
|
str+=get.translation(list[i])+'、';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return str.slice(0,str.length-1);
|
return str.slice(0,str.length-1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
qianxing:{
|
qianxing:{
|
||||||
mark:true,
|
mark:true,
|
||||||
nopop:true,
|
nopop:true,
|
||||||
|
@ -29910,7 +29925,7 @@
|
||||||
else if(typeof info.enable=='string') enable=(info.enable==event.name);
|
else if(typeof info.enable=='string') enable=(info.enable==event.name);
|
||||||
if(enable){
|
if(enable){
|
||||||
if(info.filter&&!info.filter(event,player)) enable=false;
|
if(info.filter&&!info.filter(event,player)) enable=false;
|
||||||
if(info.viewAs&&event.filterCard&&!event.filterCard(info.viewAs,player)) enable=false;
|
if(info.viewAs&&event.filterCard&&!event.filterCard(info.viewAs,player,event)) enable=false;
|
||||||
if(info.viewAs&&info.viewAsFilter&&info.viewAsFilter(player)==false) enable=false;
|
if(info.viewAs&&info.viewAsFilter&&info.viewAsFilter(player)==false) enable=false;
|
||||||
if(info.usable&&get.skillCount(skills2[i])>=info.usable) enable=false;
|
if(info.usable&&get.skillCount(skills2[i])>=info.usable) enable=false;
|
||||||
if(info.chooseButton&&_status.event.noButton) enable=false;
|
if(info.chooseButton&&_status.event.noButton) enable=false;
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
window.noname_update={
|
window.noname_update={
|
||||||
version:'1.9.96.7',
|
version:'1.9.96.7.1',
|
||||||
update:'1.9.96.6.1',
|
update:'1.9.96.7',
|
||||||
changeLog:[
|
changeLog:[
|
||||||
'BUG修复',
|
'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/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/xianjian.js',
|
//'character/xianjian.js',
|
||||||
'character/xinghuoliaoyuan.js',
|
'character/xinghuoliaoyuan.js',
|
||||||
//'character/yijiang.js',
|
'character/yijiang.js',
|
||||||
//'character/yxs.js',
|
//'character/yxs.js',
|
||||||
//'extension/boss/extension.js',
|
//'extension/boss/extension.js',
|
||||||
//'layout/default/layout.css',
|
//'layout/default/layout.css',
|
||||||
'mode/identity.js',
|
//'mode/identity.js',
|
||||||
//'mode/doudizhu.js',
|
//'mode/doudizhu.js',
|
||||||
//'mode/guozhan.js',
|
//'mode/guozhan.js',
|
||||||
//'mode/single.js',
|
//'mode/single.js',
|
||||||
|
|
Loading…
Reference in New Issue