Merge branch 'master' into 'master'

An even cleaner implementation for CountersAi keyword counters logic

See merge request core-developers/forge!3914
This commit is contained in:
Michael Kamensky
2021-02-19 08:22:37 +00:00

View File

@@ -98,7 +98,7 @@ public abstract class CountersAi {
}); });
choice = ComputerUtilCard.getMostExpensivePermanentAI(boon, null, false); choice = ComputerUtilCard.getMostExpensivePermanentAI(boon, null, false);
} else if (CounterType.get(type).isKeywordCounter()) { } else if (CounterType.get(type).isKeywordCounter()) {
choice = ComputerUtilCard.getBestCreatureAI(CardLists.getNotKeyword(list, Keyword.getInstance(type).getKeyword())); choice = ComputerUtilCard.getBestCreatureAI(CardLists.getNotKeyword(list, type));
} else { } else {
// The AI really should put counters on cards that can use it. // The AI really should put counters on cards that can use it.
// Charge counters on things with Charge abilities, etc. Expand // Charge counters on things with Charge abilities, etc. Expand