- AI will no longer dredge when the library is nearly empty.

This commit is contained in:
Sloth
2013-06-11 20:46:47 +00:00
parent 3019e23367
commit 14a7fd24b6

View File

@@ -646,6 +646,11 @@ public class AiController {
* @return
*/
public Card chooseCardToDredge(List<Card> dredgers) {
Player ai = getPlayer();
//don't dredge when the library is nearly empty
if (ai.getCardsIn(ZoneType.Library).size() < 8 && !ai.isCardInPlay("Laboratory Maniac")) {
return null;
}
// use dredge if there are more than one of them in your graveyard
if (dredgers.size() > 1 || MyRandom.getRandom().nextBoolean()) {
return Aggregates.random(dredgers);