优化阮籍ai

This commit is contained in:
157 2024-01-10 17:33:10 +08:00
parent d2761c31fd
commit 8d16c5792b
1 changed files with 18 additions and 0 deletions

View File

@ -3215,6 +3215,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
});
while(num--) player.draw();
},
ai:{
effect:{
player:(card,player,target)=>{
if(get.itemtype(card)==='card'&&cardx.hasGaintag('dczhaowen_tag')&&get.color(card,player)==='red') return [1,1];
}
}
}
},
viewed:{
onremove:true,
@ -3268,6 +3275,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
jiuSustain:true,
skillTagFilter:function(player,tag,name){
if(name!='phase') return false;
},
effect:{
target:(card,player,target)=>{
if(player===target||typeof card!=='object'||get.color(card)!=='black') return;
if(target.hasSkill('jiu')){
if(card.name!=='huogong'&&get.tag(card,'damage')&&get.attitude(player,target)<=0&&target.hasCard(i=>{
return _status.connectMode||lib.filter.cardDiscardable(i,player,'dcjiudun');
},'h')) return [0,-1];
}
else return [1,1.2];
}
}
}
},