- Improvements to Phyrexian Dreadnought AI handling.

This commit is contained in:
Agetian
2017-01-25 11:46:34 +00:00
parent 4c931da9c5
commit 7416cc8fff

View File

@@ -378,13 +378,16 @@ public class SpecialCardAi {
// Phyrexian Dreadnought
public static class PhyrexianDreadnought {
public static CardCollection reviseCreatureSacList(Player ai, SpellAbility sa, CardCollection choices) {
choices.sort(Collections.reverseOrder(CardLists.CmcComparatorInv));
choices.sort(Collections.reverseOrder(ComputerUtilCard.EvaluateCreatureComparator));
int power = 0;
List<Card> toKeep = Lists.newArrayList();
for (Card c : choices) {
if (c.getName().equals(sa.getHostCard().getName())) {
continue; // not worth it sac'ing another Dreadnaught
}
if (c.getNetPower() < 1) {
continue; // contributes nothing to Dreadnought requirements
}
if (power >= 12) {
break;
}