优化部分技能ai

rezhenjun不能对无牌角色发动技能;
增加xindanxin卖血ai
This commit is contained in:
PZ157 2023-11-07 21:49:42 +08:00
parent 88e7edeb77
commit 660b74d8aa
1 changed files with 13 additions and 1 deletions

View File

@ -3304,7 +3304,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
direct:true,
content:function (){
'step 0'
player.chooseTarget(get.prompt2('rezhenjun')).ai=function(target){
player.chooseTarget(get.prompt2('rezhenjun'),(card,player,target)=>{
return target.countCards('he');
}).ai=function(target){
return -get.attitude(_status.event.player,target)*(target.countCards('e')+1);
};
'step 1'
@ -6121,6 +6123,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.popup('更改描述');
player.addMark('xindanxin',1,false);
}
},
ai:{
maixie:true,
effect:{
target:(card,player,target)=>{
if(!get.tag(card,'damage')) return;
if(target.hp<2||player.hasSkillTag('jueqing',false,target)) return -1.5;
return [1,1];
}
}
}
},
zongzuo:{