- The AI will now use the ability of Hollow Specter.

This commit is contained in:
Sloth
2012-11-15 20:43:30 +00:00
parent 17c356d811
commit c308792344

View File

@@ -133,6 +133,13 @@ public class DiscardAi extends SpellAiLogic {
return false;
}
}
} else {
if ("X".equals(sa.getParam("RevealNumber")) && sa.getSourceCard().getSVar("X").equals("Count$xPaid")) {
// Set PayX here to maximum value.
final int cardsToDiscard = Math.min(ComputerUtil.determineLeftoverMana(sa, ai), ai.getOpponent()
.getCardsIn(ZoneType.Hand).size());
sa.getSourceCard().setSVar("PayX", Integer.toString(cardsToDiscard));
}
}
return true;