Merge branch 'master' into 'master'

Tetzimoc CountersPutAi: don't try to target creatures with Hexproof

See merge request core-developers/forge!544
This commit is contained in:
Michael Kamensky
2018-05-09 12:13:01 +00:00

View File

@@ -273,7 +273,8 @@ public class CountersPutAi extends SpellAbilityAi {
}
CardCollection oppCreats = CardLists.filter(ai.getOpponents().getCreaturesInPlay(),
Predicates.not(CardPredicates.hasCounter(CounterType.getType(type))));
Predicates.and(Predicates.not(CardPredicates.hasCounter(CounterType.getType(type))),
CardPredicates.isTargetableBy(sa)));
if (!oppCreats.isEmpty()) {
Card bestCreat = ComputerUtilCard.getBestCreatureAI(oppCreats);