Minor cleanup

This commit is contained in:
ZeldaZach 2024-12-01 12:11:39 -05:00
parent 0ea29b1eb3
commit 050c86cee6
No known key found for this signature in database

View file

@ -108,9 +108,9 @@ static void setupParserRules()
};
search["RarityQuery"] = [](const peg::SemanticValues &sv) -> Filter {
StringMatcher matcher = sv[0].get<StringMatcher>();
return [=](CardData x) -> bool {
for (const auto &y : x->getSets().values()) {
for (const auto &set : y) {
return [=](const CardData &x) -> bool {
for (const auto &cardInfoPerSetList : x->getSets().values()) {
for (const auto &set : cardInfoPerSetList) {
if (matcher(set.getProperty("rarity")))
return true;
}