王凌bugfix

This commit is contained in:
mengxinzxz 2024-04-05 22:47:12 +08:00
parent 77c7025e2a
commit fb5e08af3a
1 changed files with 3 additions and 2 deletions

View File

@ -2248,11 +2248,12 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
},0)-lib.inpile.indexOf(b.name)-get.natureList(b,false).reduce((sum,nature)=>{ },0)-lib.inpile.indexOf(b.name)-get.natureList(b,false).reduce((sum,nature)=>{
return sum+lib.inpile_nature.indexOf(nature); return sum+lib.inpile_nature.indexOf(nature);
},0); },0);
}).slice().map(card=>[get.translation(type),'',card[2],card[3]]); }).slice().map(card=>[get.translation(get.type(card)),'',card.name,card.nature]);
return ui.create.dialog('秘备',[list,'vcard']); return ui.create.dialog('秘备',[list,'vcard']);
}, },
filter(button,player){ filter(button,player){
return get.event().getParent().filterCard({name:button.link[2],nature:button.link[3]},player,event); const event=get.event().getParent();
return event.filterCard({name:button.link[2],nature:button.link[3]},player,event);
}, },
check(button){ check(button){
const player=get.event('player'); const player=get.event('player');