Don't warn about cards AI can't play when using simulation AI.

This commit is contained in:
Myrd
2016-12-23 06:16:53 +00:00
parent a2aa3ccc06
commit fce93840c0

View File

@@ -1448,10 +1448,13 @@ public class AiController {
public Collection<? extends PaperCard> complainCardsCantPlayWell(Deck myDeck) {
List<PaperCard> result = Lists.newArrayList();
for (Entry<DeckSection, CardPool> ds : myDeck) {
for (Entry<PaperCard, Integer> cp : ds.getValue()) {
if (cp.getKey().getRules().getAiHints().getRemAIDecks())
result.add(cp.getKey());
// When using simulation, AI should be able to figure out most cards.
if (!useSimulation) {
for (Entry<DeckSection, CardPool> ds : myDeck) {
for (Entry<PaperCard, Integer> cp : ds.getValue()) {
if (cp.getKey().getRules().getAiHints().getRemAIDecks())
result.add(cp.getKey());
}
}
}
return result;