This commit is contained in:
parent
79a861d142
commit
f509645125
|
@ -3714,7 +3714,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
filterTarget:function(card,player,target){
|
filterTarget:function(card,player,target){
|
||||||
return player!=target;
|
return player!=target;
|
||||||
},
|
},
|
||||||
position:'he',
|
// position:'he',
|
||||||
ai1:function(card){
|
ai1:function(card){
|
||||||
return 10-get.value(card);
|
return 10-get.value(card);
|
||||||
},
|
},
|
||||||
|
|
10
game/game.js
10
game/game.js
|
@ -9583,10 +9583,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
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();
|
event.finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
"step 2"
|
"step 2"
|
||||||
if(event.cancelled){
|
if(event.cancelled){
|
||||||
event.finish();
|
event.finish();
|
||||||
|
@ -14821,7 +14829,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(var i in this.additionalSkills){
|
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++){
|
for(j=0;j<this.additionalSkills[i].length;j++){
|
||||||
if(this.additionalSkills[i][j]){
|
if(this.additionalSkills[i][j]){
|
||||||
skills.add(this.additionalSkills[i][j]);
|
skills.add(this.additionalSkills[i][j]);
|
||||||
|
|
|
@ -641,7 +641,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
player.chooseTarget('选择一个目标装备'+get.translation(card),function(card,player,target){
|
player.chooseTarget('选择一个目标装备'+get.translation(card),function(card,player,target){
|
||||||
return target.canEquip(_status.event.subtype);
|
return target.canEquip(_status.event.subtype);
|
||||||
}).set('subtype',get.equiptype(card)).set('ai',function(target){
|
}).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{
|
else{
|
||||||
|
@ -1307,7 +1309,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
if(skills.length){
|
if(skills.length){
|
||||||
player.storage.gzhuashen_map[name]=skills;
|
player.storage.gzhuashen_map[name]=skills;
|
||||||
for(var i=0;i<skills.length;i++){
|
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);
|
player.storage.gzhuashen.add(name);
|
||||||
|
@ -1346,7 +1348,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(remove){
|
if(remove){
|
||||||
player.removeAdditionalSkill('gzhuashen',skills[i]);
|
player.removeAdditionalSkill('hidden:gzhuashen',skills[i]);
|
||||||
player.storage.gzhuashen_removing.remove(skills[i]);
|
player.storage.gzhuashen_removing.remove(skills[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue