凶算ai调整
This commit is contained in:
parent
da73f999a5
commit
c035be29c9
|
@ -137,9 +137,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
order:9,
|
order:9,
|
||||||
result:{
|
result:{
|
||||||
target(player,target){
|
target(player,target){
|
||||||
|
if(player.getHp()+player.countCards('hs',card=>player.canSaveCard(card,player))<=1) return 0;
|
||||||
const num=get.sgn(get.attitude(player,target));
|
const num=get.sgn(get.attitude(player,target));
|
||||||
if(num*get.damageEffect(target,player,player)>0) return num*get.damageEffect(target,player,player);
|
if(num*get.damageEffect(target,player,player)>0) return num*get.damageEffect(target,player,player);
|
||||||
if(target==player&&player.getHp()>1) return 0.00001;
|
if(target==player) return 0.00001;
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue