ComputerUtil: mark keywordcounter as useless if Card already has that keyword

This commit is contained in:
Hans Mackowiak
2023-04-30 15:13:25 +02:00
parent e8c8d643b2
commit d6109fe219

View File

@@ -2892,6 +2892,10 @@ public class ComputerUtil {
}
return c.getCounters(type) > e;
}
// keyword counters
if (type.isKeywordCounter() && c.hasKeyword(type.toString())) {
return true;
}
return type.is(CounterEnumType.AWAKENING) || type.is(CounterEnumType.MANIFESTATION) || type.is(CounterEnumType.PETRIFICATION)
|| type.is(CounterEnumType.TRAINING) || type.is(CounterEnumType.GHOSTFORM);