Add basic deck builder #12
1 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,15 @@ export async function getCards(filter: CardFilter) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// For "None" element searches, "nothing" is actually ok
|
||||||
|
if (
|
||||||
|
filter.Elements.includes("None") &&
|
||||||
|
x.Element.length == 0 &&
|
||||||
|
(!x.Requirement || x.Requirement.length == 0) &&
|
||||||
|
(!x.ProblemRequirement || x.ProblemRequirement.length == 0)
|
||||||
|
) {
|
||||||
|
found = true;
|
||||||
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue