This commit is contained in:
libccy 2018-08-13 10:55:04 +08:00
parent 79a861d142
commit f509645125
3 changed files with 16 additions and 6 deletions

View File

@ -3714,7 +3714,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filterTarget:function(card,player,target){
return player!=target;
},
position:'he',
// position:'he',
ai1:function(card){
return 10-get.value(card);
},

View File

@ -9583,10 +9583,18 @@
}
}
else{
var keep=false;
for(var i in player.additionalSkills){
if(i.indexOf('hidden:')==0&&player.additionalSkills[i].contains(event.skill)){
keep=true;break;
}
}
if(!keep){
event.finish();
}
}
}
}
"step 2"
if(event.cancelled){
event.finish();
@ -14821,7 +14829,7 @@
}
}
for(var i in this.additionalSkills){
if(Array.isArray(this.additionalSkills[i])){
if(Array.isArray(this.additionalSkills[i])&&(arg2||i.indexOf('hidden:')!==0)){
for(j=0;j<this.additionalSkills[i].length;j++){
if(this.additionalSkills[i][j]){
skills.add(this.additionalSkills[i][j]);

View File

@ -641,7 +641,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
player.chooseTarget('选择一个目标装备'+get.translation(card),function(card,player,target){
return target.canEquip(_status.event.subtype);
}).set('subtype',get.equiptype(card)).set('ai',function(target){
return get.attitude(_status.event.player,target);
var att=get.attitude(_status.event.player,target);
if(target.hasSkillTag('noe')) att+=3;
return att;
});
}
else{
@ -1307,7 +1309,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(skills.length){
player.storage.gzhuashen_map[name]=skills;
for(var i=0;i<skills.length;i++){
player.addAdditionalSkill('gzhuashen',skills[i],true);
player.addAdditionalSkill('hidden:gzhuashen',skills[i],true);
}
}
player.storage.gzhuashen.add(name);
@ -1346,7 +1348,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
}
if(remove){
player.removeAdditionalSkill('gzhuashen',skills[i]);
player.removeAdditionalSkill('hidden:gzhuashen',skills[i]);
player.storage.gzhuashen_removing.remove(skills[i]);
}
}