Commit c58e4d30 authored by Sol's avatar Sol

Better way to handle AllCreatureTypes

parent 7d341bd5
......@@ -1206,9 +1206,10 @@ public class CardFactoryUtil {
// Figure out how to count each class separately.
for (Card card : adventurers) {
Set<String> creatureTypes = card.getType().getCreatureTypes();
boolean anyType = creatureTypes.contains("AllCreatureTypes");
creatureTypes.retainAll(partyTypes);
if (creatureTypes.size() == 4 || card.hasKeyword("Changeling")) {
if (anyType || creatureTypes.size() == 4) {
wildcard.add(card);
if (wildcard.size() >= 4) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment