起刘备ai报错修复

This commit is contained in:
copcap 2024-01-21 12:06:38 +08:00
parent d9848811a7
commit 123992b382
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 1 additions and 1 deletions

View File

@ -7377,7 +7377,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
aiOrder:(player,card,num)=>{ aiOrder:(player,card,num)=>{
if(num>0&&get.itemtype(card)==='card'&&get.subtype(card)==='equip1'&&!player.getEquip(1)){ if(num>0&&get.itemtype(card)==='card'&&get.subtype(card)==='equip1'&&!player.getEquip(1)){
if(card.name!=='zhuge'||player.getCardUsable('sha')||!player.needsToDiscard()||player.countCards('hs',i=>{ if(card.name!=='zhuge'||player.getCardUsable('sha')||!player.needsToDiscard()||player.countCards('hs',i=>{
return get.name(i)==='sha'&&lib.filter.cardEnabled(i,target); return get.name(i)==='sha'&&lib.filter.cardEnabled(i,player);
})<2) return 0; })<2) return 0;
} }
}, },