王异、界王异〖贞烈〗ai增加被强命检测
This commit is contained in:
parent
18da17fb00
commit
3844e13ddb
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue