iterableGetCards增加arg2为数组的判断

This commit is contained in:
157 2024-02-03 09:55:52 +08:00
parent b857c88e1e
commit c8a2aef6ad
1 changed files with 1 additions and 0 deletions

View File

@ -3249,6 +3249,7 @@ export class Player extends HTMLDivElement {
filter = card=>(getCardName(card) == arg2);
}else if(typeof arg2 == 'object'){
filter = card=>{
if(Array.isArray(arg2)) return arg2.includes(getCardName(card));
for (let j in arg2) {
var value;
if (j == 'type' || j == 'subtype' || j == 'color' || j == 'suit' || j == 'number') {