增加【挫锐】ai;优化【隐逸】ai

This commit is contained in:
157 2023-09-20 23:26:57 +08:00 committed by GitHub
parent 76ed4c34c5
commit 00a1705102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -3041,14 +3041,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
effect:{
target:function(card,player,target,current){
if(get.tag(card,'damage')){
if(player.hp==target.hp) return;
if(player.hp==target.hp||lib.linked.contains(get.nature(card))) return;
var cards=[card];
if(card.cards&&card.cards.length) cards.addArray(card.cards);
if(ui.selected.cards.length) cards.addArray(ui.selected.cards);
if(player.countCards('h',function(card){
return !cards.contains(card);
})==target.countCards('h')) return;
return 'zerotarget';
return 'zeroplayertarget';
}
},
},
@ -4703,6 +4703,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(num==0) player.awakenSkill('recuorui');
player.gainPlayerCard(target,true,'h');
},
ai:{
order:10,
result:{
player:1,
target:function(player,target){
if(target.hasSkillTag('noh')) return 0;
return -1;
}
}
}
},
reliewei:{
audio:'liewei',