修复神司马懿【忍戒】ai

This commit is contained in:
157 2024-02-04 11:57:55 +08:00
parent 9f1de8ebb0
commit 41d8457c6d
1 changed files with 4 additions and 2 deletions

View File

@ -5699,10 +5699,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mod:{
aiOrder:(player,card,num)=>{
if(num<=0||typeof card!=='object'||!player.isPhaseUsing()) return num;
if(player.awakenedSkills.includes('sbaiyin')){
if(player.hasSkill('sbaiyin')){
if(player.countMark('renjie')<4&&player.getUseValue(card)<Math.min(4,player.hp*player.hp/4)) return 0;
}
else if(player.hasSkill('jilue')){
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:{