This commit is contained in:
mengxinzxz 2024-03-28 21:44:50 +08:00
parent 386b4495fa
commit 849d6e7c18
1 changed files with 2 additions and 5 deletions

View File

@ -41,15 +41,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2, audio:2,
enable:'phaseUse', enable:'phaseUse',
filter(event,player){ filter(event,player){
const cards=player.getCards('h',card=>player.canRecast(card)); return player.hasCard(card=>get.info('clanlilun').filterCard(card,player),'h');
return player.hasCard(card=>{
return cards.includes(card)&&cards.filter(i=>i.name==card.name).length>1;
},'h');
}, },
filterCard(card,player){ filterCard(card,player){
if(player.getStorage('clanlilun').includes(card.name)) return false; if(player.getStorage('clanlilun').includes(card.name)) return false;
if(ui.selected.cards.length&&ui.selected.cards[0].name!=card.name) return false; if(ui.selected.cards.length&&ui.selected.cards[0].name!=card.name) return false;
const cards=player.getCards('h',cardx=>player.canRecast(card)); const cards=player.getCards('h',cardx=>player.canRecast(cardx));
return cards.includes(card)&&cards.filter(i=>i.name==card.name).length>1; return cards.includes(card)&&cards.filter(i=>i.name==card.name).length>1;
}, },
selectCard:2, selectCard:2,