mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- CountersRemoveAi: try to target Adapt creatures when removing +1/+1 counters mandatorily.
This commit is contained in:
@@ -308,6 +308,15 @@ public class CountersRemoveAi extends SpellAbilityAi {
|
||||
}
|
||||
}
|
||||
if (mandatory) {
|
||||
if (type.equals("P1P1")) {
|
||||
// Try to target creatures with Adapt
|
||||
CardCollection adaptCreats = CardLists.filter(list, CardPredicates.hasKeyword(Keyword.ADAPT));
|
||||
if (!adaptCreats.isEmpty()) {
|
||||
sa.getTargets().add(ComputerUtilCard.getWorstAI(adaptCreats));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
sa.getTargets().add(ComputerUtilCard.getWorstAI(list));
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user