forked from External/mage
Merge pull request 'master' (#9) from External/mage:master into master
All checks were successful
/ example-docker-compose (push) Successful in 15m13s
All checks were successful
/ example-docker-compose (push) Successful in 15m13s
Reviewed-on: #9
This commit is contained in:
commit
6b4fc4eb47
166 changed files with 1505 additions and 579 deletions
|
|
@ -87,7 +87,7 @@ public class AddLandDialog extends MageDialog {
|
|||
landSetNames.add(expansionInfo.getName());
|
||||
}
|
||||
if (landSetNames.isEmpty()) {
|
||||
throw new IllegalArgumentException("No set with basic land was found");
|
||||
throw new IllegalArgumentException("No set with basic land was found (possible memory problems, need client restart)");
|
||||
}
|
||||
if (landSetNames.size() > 1) {
|
||||
landSetNames.add("<Random lands>");
|
||||
|
|
@ -477,6 +477,7 @@ public class AddLandDialog extends MageDialog {
|
|||
}//GEN-LAST:event_btnSetFastSearchActionPerformed
|
||||
|
||||
private void autoAddLands() {
|
||||
// suggest lands amount for deck without lands
|
||||
int deckSize = ((Number) spnDeckSize.getValue()).intValue();
|
||||
int[] lands = DeckBuildUtils.landCountSuggestion(deckSize, deck.getMaindeckCards());
|
||||
spnPlains.setValue(lands[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue