修复并优化【守成】ai

This commit is contained in:
157 2024-02-04 09:53:05 +08:00
parent 22e6720094
commit aa02582390
1 changed files with 9 additions and 1 deletions

View File

@ -187,10 +187,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ai:{
noh:true,
skillTagFilter(player,tag,arg){
if(player.countCards('h')!==1) return false;
if(player===_status.currentPhase||player.countCards('h')!==1) return false;
return game.hasPlayer(current=>{
return current.hasSkill('dcshoucheng')&&get.attitude(current,player)>0;
});
},
effect:{
target(card,player,target){
if(target===_status.currentPhase||target.countCards('h')!==1||!game.hasPlayer(current=>{
return current.hasSkill('dcshoucheng')&&get.attitude(current,target)>0;
})) return;
if(get.tag(card,'lose')||get.tag(card,'discard')) return [1,1.6];
}
}
}
}