- The AI will no longer play Mind Twist with X=0.

This commit is contained in:
Sloth
2013-03-16 16:35:21 +00:00
parent 561b8f95bf
commit 73c457f46a

View File

@@ -81,6 +81,9 @@ public class DiscardAi extends SpellAbilityAi {
// Set PayX here to maximum value.
final int cardsToDiscard = Math.min(ComputerUtilMana.determineLeftoverMana(sa, ai), ai.getOpponent()
.getCardsIn(ZoneType.Hand).size());
if (cardsToDiscard < 1) {
return false;
}
source.setSVar("PayX", Integer.toString(cardsToDiscard));
} else {
if (AbilityUtils.calculateAmount(sa.getSourceCard(), sa.getParam("NumCards"), sa) < 1) {