From 76d5e967c2eaacf2cd670b7bd10ff807de687a30 Mon Sep 17 00:00:00 2001 From: Michael Kamensky Date: Fri, 19 Feb 2021 11:22:02 +0300 Subject: [PATCH] - An even cleaner implementation for CountersAi keyword counters logic --- forge-ai/src/main/java/forge/ai/ability/CountersAi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/CountersAi.java b/forge-ai/src/main/java/forge/ai/ability/CountersAi.java index f4f7498159f..ad8d6335b8a 100644 --- a/forge-ai/src/main/java/forge/ai/ability/CountersAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/CountersAi.java @@ -98,7 +98,7 @@ public abstract class CountersAi { }); choice = ComputerUtilCard.getMostExpensivePermanentAI(boon, null, false); } else if (CounterType.get(type).isKeywordCounter()) { - choice = ComputerUtilCard.getBestCreatureAI(CardLists.getNotKeyword(list, Keyword.getInstance(type).getKeyword())); + choice = ComputerUtilCard.getBestCreatureAI(CardLists.getNotKeyword(list, type)); } else { // The AI really should put counters on cards that can use it. // Charge counters on things with Charge abilities, etc. Expand