mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
* AI Player - Fixed that the AI took mulligan in Mormir format.
This commit is contained in:
parent
c008b04965
commit
b25e35920e
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
private transient List<ColoredManaSymbol> chosenColors;
|
||||
|
||||
private transient ManaCost currentUnpaidMana;
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
|
||||
public ComputerPlayer(String name, RangeOfInfluence range) {
|
||||
super(name, range);
|
||||
|
@ -197,7 +197,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
@Override
|
||||
public boolean chooseMulligan(Game game) {
|
||||
log.debug("chooseMulligan");
|
||||
if (hand.size() < 6 || isTestMode()) {
|
||||
if (hand.size() < 6 || isTestMode() || game.getClass().getName().contains("Momir")) {
|
||||
return false;
|
||||
}
|
||||
Set<Card> lands = hand.getCards(new FilterLandCard(), game);
|
||||
|
|
Loading…
Add table
Reference in a new issue