修复转韩遂ai没实现预期效果的bug
This commit is contained in:
parent
9d973a6555
commit
fd1625fbdb
|
@ -3478,10 +3478,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
prompt2:`${undamaged.length?'选择一张牌弃置并选择一名未对你造成过伤害的角色,你对其造成1点伤害':''}${undamaged.length&&damaged.length?';<br>或':''}${damaged.length?'仅选择一名对你造成过伤害的角色,你令其摸两张牌':''}。`,
|
prompt2:`${undamaged.length?'选择一张牌弃置并选择一名未对你造成过伤害的角色,你对其造成1点伤害':''}${undamaged.length&&damaged.length?';<br>或':''}${damaged.length?'仅选择一名对你造成过伤害的角色,你令其摸两张牌':''}。`,
|
||||||
damaged:damaged,
|
damaged:damaged,
|
||||||
aiTarget:(()=>{
|
aiTarget:(()=>{
|
||||||
if(!undamaged.some(i=>{
|
if(undamaged.includes(player)&&!undamaged.some(i=>{
|
||||||
if(get.attitude(player,i)>0) return true;
|
if(i===player) return false;
|
||||||
if(i.getHp(true)+i.hujia<2) return true;
|
let att=get.attitude(player,i);
|
||||||
return false;
|
if(att>0) return true;
|
||||||
|
return att<0&&i.getHp(true)+i.hujia<2;
|
||||||
})&&(player.hp>2||get.damageEffect(player,player,player)>=0)) return player;
|
})&&(player.hp>2||get.damageEffect(player,player,player)>=0)) return player;
|
||||||
var info=game.filterPlayer().map(current=>{
|
var info=game.filterPlayer().map(current=>{
|
||||||
let damage=undamaged.includes(current),card={name:damage?'damage':'draw'};
|
let damage=undamaged.includes(current),card={name:damage?'damage':'draw'};
|
||||||
|
|
Loading…
Reference in New Issue