修复OL谋袁绍【合讨】不能弃置装备牌的bug

This commit is contained in:
mengxinzxz 2024-02-22 01:35:22 +08:00
parent 4600f47695
commit bc3c3021c2
1 changed files with 2 additions and 1 deletions

View File

@ -52,8 +52,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const {result:{bool,cards,targets}}=await player.chooseCardTarget({
prompt:get.prompt('olsbhetao'),
filterCard(card,player){
return get.color(card)==get.color(get.event().getTrigger().card);
return get.color(card)==get.color(get.event().getTrigger().card)&&lib.filter.cardDiscardable(card,player);
},
position:'he',
filterTarget(card,player,target){
return get.event().getTrigger().targets.includes(target);
},