mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Added the new mulligan rule with Scry. Litte Scry rework.
This commit is contained in:
parent
71860b0168
commit
5a812f022d
9 changed files with 95 additions and 58 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue