mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'deckbuildingfix' into 'master'
Fixed card-deck decks all getting a totally random card See merge request core-developers/forge!531
This commit is contained in:
@@ -231,7 +231,9 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
|
||||
|
||||
// 9. If there are still less than 22 non-land cards add off-color
|
||||
// cards. This should be avoided.
|
||||
addRandomCards(numSpellsNeeded - deckList.size());
|
||||
int stillNeeds = numSpellsNeeded - deckList.size();
|
||||
if(stillNeeds>0)
|
||||
addRandomCards(stillNeeds);
|
||||
if (logToConsole) {
|
||||
System.out.println("Post Randoms : " + deckList.size());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user