优化【雄乱】ai
This commit is contained in:
parent
a9052b84c8
commit
fb1e20d29b
|
@ -1382,13 +1382,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
ai:{
|
ai:{
|
||||||
order:13,
|
order:13,
|
||||||
result:{
|
result:{
|
||||||
target:function(player,target){
|
target:(player,target)=>{
|
||||||
if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return 0;
|
if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return 0;
|
||||||
var hs=player.countCards('h',function(card){
|
let hs=player.countCards('h',card=>{
|
||||||
return ['sha','juedou'].contains(card.name)&&get.effect(target,card,player,player)!=0;
|
if(!get.tag(card,'damage')||get.effect(target,card,player,player)<=0) return 0;
|
||||||
|
if(get.name(card,player)==='sha'){
|
||||||
|
if(target.getEquip('bagua')) return 0.5;
|
||||||
|
if(target.getEquip('rewrite_bagua')) return 0.25;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}),ts=target.hp+target.hujia+game.countPlayer(current=>{
|
||||||
|
if(get.attitude(current,target)>0) return current.countCards('hs')/8;
|
||||||
|
return 0;
|
||||||
});
|
});
|
||||||
var ts=target.hp;
|
if(hs>=ts) return -hs;
|
||||||
if(hs>=ts&&ts>1) return -1;
|
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue