- Fixed AI using Increasing Confusion.

This commit is contained in:
Sloth
2013-05-07 07:20:02 +00:00
parent ced8a33a06
commit 8d1c43d6fa

View File

@@ -73,7 +73,7 @@ public class MillAi extends SpellAbilityAi {
boolean randomReturn = r.nextFloat() <= Math.pow(chance, sa.getActivationsThisTurn() + 1); boolean randomReturn = r.nextFloat() <= Math.pow(chance, sa.getActivationsThisTurn() + 1);
if (sa.getParam("NumCards").equals("X") && source.getSVar("X").startsWith("Count$xPaid")) { if ((sa.getParam("NumCards").equals("X") || sa.getParam("NumCards").equals("Z")) && source.getSVar("X").startsWith("Count$xPaid")) {
// Set PayX here to maximum value. // Set PayX here to maximum value.
final int cardsToDiscard = final int cardsToDiscard =
Math.min(ComputerUtilMana.determineLeftoverMana(sa, ai), ai.getOpponent().getCardsIn(ZoneType.Library).size()); Math.min(ComputerUtilMana.determineLeftoverMana(sa, ai), ai.getOpponent().getCardsIn(ZoneType.Library).size());