mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Also check supertype for Type$Legendary/Snow
This commit is contained in:
@@ -181,7 +181,7 @@ public class DeckHints {
|
|||||||
String[] typeParts = t.split("\\.");
|
String[] typeParts = t.split("\\.");
|
||||||
op = Predicates.and(CardRulesPredicates.coreType(true, typeParts[0]), CardRulesPredicates.subType(typeParts[1]));
|
op = Predicates.and(CardRulesPredicates.coreType(true, typeParts[0]), CardRulesPredicates.subType(typeParts[1]));
|
||||||
} else {
|
} else {
|
||||||
op = Predicates.or(CardRulesPredicates.coreType(true, t), CardRulesPredicates.subType(t));
|
op = CardRulesPredicates.joinedType(StringOp.CONTAINS_IC, t);
|
||||||
}
|
}
|
||||||
Iterables.addAll(cards, getMatchingItems(cardList, op, PaperCard.FN_GET_RULES));
|
Iterables.addAll(cards, getMatchingItems(cardList, op, PaperCard.FN_GET_RULES));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user