张曼成掠城ai调整

This commit is contained in:
mengxinzxz 2023-10-14 15:17:29 +08:00 committed by GitHub
parent 45855156c6
commit 7edfd4d804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -620,7 +620,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(player.getStorage('dclvecheng_xiongluan').contains(target)) return 0; if(player.getStorage('dclvecheng_xiongluan').contains(target)) return 0;
if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return -0.6; if(target.getEquip('bagua')||target.getEquip('rewrite_bagua')) return -0.6;
var hs=player.countCards('h',card=>{ var hs=player.countCards('h',card=>{
return get.name(card)=='sha'&&get.effect(target,card,player,player)!=0; if(!player.canUse(card,target)) return false;
return get.name(card)=='sha'&&get.effect(target,card,player,player)>0;
}); });
var ts=target.hp; var ts=target.hp;
if(hs>=ts&&ts>1) return -2; if(hs>=ts&&ts>1) return -2;