优化神司马懿ai

This commit is contained in:
157 2024-01-07 15:48:35 +08:00
parent 6a6c7de094
commit 18d5ff8f7a
1 changed files with 12 additions and 0 deletions

View File

@ -5434,6 +5434,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
renjie2:{
audio:2,
mod:{
aiOrder:(player,card,num)=>{
if(num<=0||typeof card!=='object'||!player.isPhaseUsing()) return 0;
if(player.awakenedSkills.includes('sbaiyin')){
if(player.countMark('renjie')<3&&player.getUseValue(card)<Math.min(1.8,0.18*player.hp*player.hp)) return 0;
}
else if(player.countMark('renjie')<4&&player.getUseValue(card)<Math.min(4,player.hp*player.hp/4)) return 0;
}
},
trigger:{
player:'loseAfter',
global:'loseAsyncAfter',
@ -5469,6 +5478,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
jilue:{
unique:true,
group:['jilue_guicai','jilue_fangzhu','jilue_wansha','jilue_zhiheng','jilue_jizhi'],
ai:{
combo:'renjie'
}
},
jilue_guicai:{
audio:1,