- Added AILogic parameter to AF TwoPiles.

This commit is contained in:
Sloth
2012-12-03 08:49:23 +00:00
parent 5be65b6614
commit 0d2f953698
4 changed files with 7 additions and 4 deletions

View File

@@ -233,7 +233,10 @@ public class TwoPilesEffect extends SpellEffect {
// for now, this assumes that the outcome will be bad
// TODO: This should really have a ChooseLogic param to
// figure this out
pile1WasChosen = cmc1 <= cmc2;
pile1WasChosen = cmc1 >= cmc2;
if ("Worst".equals(sa.getParam("AILogic"))) {
pile1WasChosen = !pile1WasChosen;
}
if (pile1WasChosen) {
JOptionPane.showMessageDialog(null, "Computer chooses the Pile 1", "",
JOptionPane.INFORMATION_MESSAGE);