mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Removed debug command.
This commit is contained in:
parent
22c30a43f5
commit
b60cd3d40e
1 changed files with 6 additions and 7 deletions
|
@ -126,13 +126,13 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
@Override
|
@Override
|
||||||
public boolean chooseMulligan(Game game) {
|
public boolean chooseMulligan(Game game) {
|
||||||
log.debug("chooseMulligan");
|
log.debug("chooseMulligan");
|
||||||
if (hand.size() < 6
|
if (hand.size() < 6
|
||||||
|| isTestMode()
|
|| isTestMode()
|
||||||
|| game.getClass().getName().contains("Momir")) {
|
|| game.getClass().getName().contains("Momir")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Set<Card> lands = hand.getCards(new FilterLandCard(), game);
|
Set<Card> lands = hand.getCards(new FilterLandCard(), game);
|
||||||
return lands.size() < 2
|
return lands.size() < 2
|
||||||
|| lands.size() > hand.size() - 2;
|
|| lands.size() > hand.size() - 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
}
|
}
|
||||||
// sometimes a target selection can be made from a player that does not control the ability
|
// sometimes a target selection can be made from a player that does not control the ability
|
||||||
UUID abilityControllerId = playerId;
|
UUID abilityControllerId = playerId;
|
||||||
if (target.getTargetController() != null
|
if (target.getTargetController() != null
|
||||||
&& target.getAbilityController() != null) {
|
&& target.getAbilityController() != null) {
|
||||||
abilityControllerId = target.getAbilityController();
|
abilityControllerId = target.getAbilityController();
|
||||||
}
|
}
|
||||||
|
@ -1413,7 +1413,6 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {
|
public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {
|
||||||
log.debug("chooseTarget");
|
|
||||||
if (cards == null || cards.isEmpty()) {
|
if (cards == null || cards.isEmpty()) {
|
||||||
return target.isRequired(source);
|
return target.isRequired(source);
|
||||||
}
|
}
|
||||||
|
@ -1633,12 +1632,12 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Deck buildDeck(List<Card> cardPool, final List<ColoredManaSymbol> colors) {
|
public static Deck buildDeck(List<Card> cardPool, final List<ColoredManaSymbol> colors) {
|
||||||
return buildDeck(cardPool, colors, false);
|
return buildDeck(cardPool, colors, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Deck buildDeck(List<Card> cardPool, final List<ColoredManaSymbol> colors, boolean onlyBasicLands) {
|
public static Deck buildDeck(List<Card> cardPool, final List<ColoredManaSymbol> colors, boolean onlyBasicLands) {
|
||||||
if (onlyBasicLands) {
|
if (onlyBasicLands) {
|
||||||
return buildDeckWithOnlyBasicLands(cardPool);
|
return buildDeckWithOnlyBasicLands(cardPool);
|
||||||
} else {
|
} else {
|
||||||
return buildDeckWithNormalCards(cardPool, colors);
|
return buildDeckWithNormalCards(cardPool, colors);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue