王异、界王异〖贞烈〗ai增加被强命检测

This commit is contained in:
157 2024-01-08 14:58:06 +08:00
parent 18da17fb00
commit 3844e13ddb
1 changed files with 9 additions and 12 deletions

View File

@ -11881,25 +11881,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
logTarget:'player',
check:function(event,player){
if(event.getParent().excluded.includes(player)) return false;
if(get.attitude(player,event.player)>0){
return false;
}
if(get.attitude(player,event.player)>0||player.hp<2&&!get.tag(event.card,'damage')) return false;
let evt=event.getParent(),
directHit=evt.nowuxie&&get.type(event.card,'trick')==='trick'||evt.directHit&&evt.directHit.includes(player)||evt.customArgs&&evt.customArgs.default&&evt.customArgs.default.directHit2;
if(get.tag(event.card,'respondSha')){
if(player.countCards('h',{name:'sha'})==0){
return true;
}
if(directHit||player.countCards('h',{name:'sha'})===0) return true;
}
else if(get.tag(event.card,'respondShan')){
if(player.countCards('h',{name:'shan'})==0){
return true;
}
if(directHit||player.countCards('h',{name:'shan'})===0) return true;
}
else if(get.tag(event.card,'damage')){
if(event.card.name=='shuiyanqijunx') return player.countCards('e')==0;
if(event.card.name==='huogong') return event.player.countCards('h')>4-player.hp-player.hujia;
if(event.card.name==='shuiyanqijunx') return player.countCards('e')===0;
return true;
}
else if((event.card.name=='shunshou'||(event.card.name=='zhujinqiyuan'&&(event.card.yingbian||get.distance(event.player,player)<0)))&&player.hp>2){
return true;
else if(player.hp>2){
if(event.card.name==='shunshou'||(event.card.name==='zhujinqiyuan'&&(event.card.yingbian||get.distance(event.player,player)<0))) return true;
}
return false;
},