mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Minor cleanup
This commit is contained in:
parent
0ea29b1eb3
commit
050c86cee6
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue