- Added Prowling Pangolin.

This commit is contained in:
Sloth
2013-06-01 16:19:12 +00:00
parent 8e15e424eb
commit 8ade32e6ea
4 changed files with 23 additions and 0 deletions

View File

@@ -364,6 +364,18 @@ public class ComputerUtil {
CardLists.shuffle(sacMeList);
return sacMeList.get(0);
}
// Sac lands
final List<Card> landsInPlay = CardLists.getType(typeList, "Land");
if (!landsInPlay.isEmpty()) {
final List<Card> landsInHand = CardLists.getType(ai.getCardsIn(ZoneType.Battlefield), "Land");
final List<Card> nonLandsInHand = CardLists.getNotType(ai.getCardsIn(ZoneType.Hand), "Land");
final int highestCMC = Math.max(6, Aggregates.max(nonLandsInHand, CardPredicates.Accessors.fnGetCmc));
if (landsInPlay.size() + landsInHand.size() >= highestCMC) {
// Don't need more land.
return ComputerUtilCard.getWorstLand(landsInPlay);
}
}
}
}

View File

@@ -410,6 +410,7 @@ public class ComputerUtilCost {
return checkLifeCost(payer, cost, source, 4, sa)
&& checkDamageCost(payer, cost, source, 4)
&& (isMine || checkSacrificeCost(payer, cost, source))
&& (isMine || checkDiscardCost(payer, cost, source))
&& (!source.getName().equals("Tyrannize") || payer.getCardsIn(ZoneType.Hand).size() > 2)
&& (!source.getName().equals("Perplex") || payer.getCardsIn(ZoneType.Hand).size() < 2)