mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Merge branch 'quick-fix-smart-card-art' into 'master'
BUG FIX for Smart Card Art selection See merge request core-developers/forge!5329
This commit is contained in:
@@ -366,8 +366,8 @@ public class Deck extends DeckBase implements Iterable<Entry<DeckSection, CardPo
|
|||||||
String setCode = alternativeCardPrint.getEdition();
|
String setCode = alternativeCardPrint.getEdition();
|
||||||
boolean isFoil = alternativeCardPrint.isFoil();
|
boolean isFoil = alternativeCardPrint.isFoil();
|
||||||
int cardsPerArtIndex = totalNrToAdd / nrOfAvailableArts;
|
int cardsPerArtIndex = totalNrToAdd / nrOfAvailableArts;
|
||||||
|
int restOfCardsToAdd = cardsPerArtIndex > 0 ? totalNrToAdd % nrOfAvailableArts : 0;
|
||||||
cardsPerArtIndex = Math.max(1, cardsPerArtIndex); // make sure is never zero
|
cardsPerArtIndex = Math.max(1, cardsPerArtIndex); // make sure is never zero
|
||||||
int restOfCardsToAdd = totalNrToAdd % nrOfAvailableArts;
|
|
||||||
int cardsAdded = 0;
|
int cardsAdded = 0;
|
||||||
PaperCard alternativeCardArt = null;
|
PaperCard alternativeCardArt = null;
|
||||||
for (int artIndex = 1; artIndex <= nrOfAvailableArts; artIndex++){
|
for (int artIndex = 1; artIndex <= nrOfAvailableArts; artIndex++){
|
||||||
|
|||||||
Reference in New Issue
Block a user