- CountersRemoveAi: try to target Adapt creatures when removing +1/+1 counters mandatorily.

This commit is contained in:
Agetian
2018-12-22 21:14:30 +03:00
committed by Hanmac
parent 2a02fd124e
commit 0123ba7819

View File

@@ -308,6 +308,15 @@ public class CountersRemoveAi extends SpellAbilityAi {
} }
} }
if (mandatory) { 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)); sa.getTargets().add(ComputerUtilCard.getWorstAI(list));
return true; return true;
} }