Added the new mulligan rule with Scry. Litte Scry rework.

This commit is contained in:
LevelX2 2015-09-03 17:27:43 +02:00
parent 71860b0168
commit 5a812f022d
9 changed files with 95 additions and 58 deletions

View file

@ -97,6 +97,7 @@ import mage.target.common.TargetCardInHand;
import mage.target.common.TargetCardInLibrary;
import mage.target.common.TargetCreaturePermanentAmount;
import mage.target.common.TargetPermanentOrPlayer;
import mage.util.MessageToClient;
import org.junit.Ignore;
/**
@ -797,6 +798,11 @@ public class TestPlayer implements Player {
@Override
public boolean chooseUse(Outcome outcome, String message, Ability source, Game game) {
return this.chooseUse(outcome, new MessageToClient(message), source, game);
}
@Override
public boolean chooseUse(Outcome outcome, MessageToClient message, Ability source, Game game) {
if (!choices.isEmpty()) {
if (choices.get(0).equals("No")) {
choices.remove(0);
@ -1897,6 +1903,11 @@ public class TestPlayer implements Player {
computerPlayer.pickCard(cards, deck, draft);
}
@Override
public boolean scry(int value, Ability source, Game game) {
return computerPlayer.scry(value, source, game);
}
public void setAIPlayer(boolean AIPlayer) {
this.AIPlayer = AIPlayer;
}