玉真子添加unequip_equip1为没有addSkill时机的视为装备武器技能使用,并为李异【蘸金】进行适配
This commit is contained in:
parent
225df4ec7f
commit
5ba4498dfd
|
@ -853,7 +853,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
equipSkill:true,
|
equipSkill:true,
|
||||||
trigger:{player:['shaMiss','eventNeutralized']},
|
trigger:{player:['shaMiss','eventNeutralized']},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!player.hasEmptySlot(1)||!lib.card.guanshi) return false;
|
if(!player.hasEmptySlot(1)||!lib.card.guanshi||player.hasSkillTag('unequip_equip1')) return false;
|
||||||
if(event.type!='card'||event.card.name!='sha'||!event.target.isIn()) return false;
|
if(event.type!='card'||event.card.name!='sha'||!event.target.isIn()) return false;
|
||||||
return player.countCards('he')>=2;
|
return player.countCards('he')>=2;
|
||||||
},
|
},
|
||||||
|
@ -889,7 +889,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
ai:{
|
ai:{
|
||||||
directHit_ai:true,
|
directHit_ai:true,
|
||||||
skillTagFilter:function(player,tag,arg){
|
skillTagFilter:function(player,tag,arg){
|
||||||
if(player._olzhanjin_guanshi_temp||!player.hasEmptySlot(1)||!lib.card.guanshi) return;
|
if(player._olzhanjin_guanshi_temp||!player.hasEmptySlot(1)||!lib.card.guanshi||player.hasSkillTag('unequip_equip1')) return;
|
||||||
player._guanshi_temp=true;
|
player._guanshi_temp=true;
|
||||||
var bool=(get.attitude(player,arg.target)<0&&arg.card&&arg.card.name=='sha'&&player.countCards('he',card=>{
|
var bool=(get.attitude(player,arg.target)<0&&arg.card&&arg.card.name=='sha'&&player.countCards('he',card=>{
|
||||||
return card!=arg.card&&(!arg.card.cards||!arg.card.cards.includes(card))&&get.value(card)<5;
|
return card!=arg.card&&(!arg.card.cards||!arg.card.cards.includes(card))&&get.value(card)<5;
|
||||||
|
@ -899,6 +899,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target){
|
target:function(card,player,target){
|
||||||
|
if(player.hasSkillTag('unequip_equip1')) return;
|
||||||
if(player==target&&get.subtype(card)=='equip1'){
|
if(player==target&&get.subtype(card)=='equip1'){
|
||||||
if(get.equipValue(card)<=get.equipValue({name:'guanshi'})) return 0;
|
if(get.equipValue(card)<=get.equipValue({name:'guanshi'})) return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,16 +295,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
twhuajing:{
|
twhuajing:{
|
||||||
audio:2,
|
audio:2,
|
||||||
getSkills(player){
|
getSkills(player){
|
||||||
let skills=player.getSkills(false,null,false).filter(skill=>{
|
return player.getCards('e',card=>get.subtype(card)=='equip1').reduce((list,card)=>{
|
||||||
const info=get.info(skill);
|
|
||||||
return info&&info.equipSkill&&info.equipSkill=='equip1';
|
|
||||||
});
|
|
||||||
skills.addArray(player.getCards('e',card=>get.subtype(card)=='equip1').reduce((list,card)=>{
|
|
||||||
const info=get.info(card);
|
const info=get.info(card);
|
||||||
if(info&&info.skills) return list.addArray(info.skills);
|
if(info&&info.skills) return list.addArray(info.skills);
|
||||||
return list;
|
return list;
|
||||||
},[]));
|
},[]);
|
||||||
return skills;
|
|
||||||
},
|
},
|
||||||
trigger:{global:'phaseBefore',player:'enterGame'},
|
trigger:{global:'phaseBefore',player:'enterGame'},
|
||||||
filter(event,player){
|
filter(event,player){
|
||||||
|
@ -517,9 +512,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
trigger:{
|
trigger:{
|
||||||
player:'loseAfter',
|
player:'loseAfter',
|
||||||
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
|
global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter','phaseBefore'],
|
||||||
},
|
},
|
||||||
filter(event,player){
|
filter(event,player){
|
||||||
|
if(event.name=='phase') return true;
|
||||||
if(event.name=='equip'&&event.player==player&&get.subtype(event.card)=='equip1') return true;
|
if(event.name=='equip'&&event.player==player&&get.subtype(event.card)=='equip1') return true;
|
||||||
const evt=event.getl(player);
|
const evt=event.getl(player);
|
||||||
return evt&&evt.player==player&&evt.es&&evt.es.some(card=>get.subtype(card)=='equip1');
|
return evt&&evt.player==player&&evt.es&&evt.es.some(card=>get.subtype(card)=='equip1');
|
||||||
|
@ -531,6 +527,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
await player.enableSkill('twhuajing_blocker');
|
await player.enableSkill('twhuajing_blocker');
|
||||||
await player.disableSkill('twhuajing_blocker',lib.skill.twhuajing.getSkills(player));
|
await player.disableSkill('twhuajing_blocker',lib.skill.twhuajing.getSkills(player));
|
||||||
},
|
},
|
||||||
|
ai:{unequip_equip1:true},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue