- Sealed Deck and Booster Draft limited modes now correctly handle and support cards with different art.

This commit is contained in:
Agetian
2014-01-13 14:46:12 +00:00
parent 9fbc7a17c3
commit 10fd05478d
3 changed files with 28 additions and 10 deletions

View File

@@ -153,13 +153,14 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> {
final Deck deck = new Deck();
// add sideboard to deck
CardPool side = deck.getOrCreate(DeckSection.Sideboard);
side.addAll(this.getDeckManager().getPool());
deck.getOrCreate(DeckSection.Sideboard).addAll(this.getDeckManager().getPool());
final CardEdition landSet = IBoosterDraft.LAND_SET_CODE[0];
final int landsCount = 20;
for(String landName : MagicColor.Constant.BASIC_LANDS) {
side.add(Singletons.getMagicDb().getCommonCards().getCard(landName, landSet.getCode()), landsCount);
for (int i = 0; i < landsCount; i++) {
deck.get(DeckSection.Sideboard).add(landName, landSet.getCode(), -1, 1);
}
}
return deck;

View File

@@ -172,7 +172,9 @@ public enum CSubmenuSealed implements ICDoc {
deck.getOrCreate(DeckSection.Sideboard).addAll(humanPool);
for (final String element : MagicColor.Constant.BASIC_LANDS) {
deck.get(DeckSection.Sideboard).add(element, sd.getLandSetCode(), 18);
for (int i = 0; i < 18; i++) {
deck.get(DeckSection.Sideboard).add(element, sd.getLandSetCode(), -1, 1);
}
}
final IStorage<DeckGroup> sealedDecks = Singletons.getModel().getDecks().getSealed();