mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Basic lands from drafts, except foils, do not get added to the player's inventory, to avoid generating an infinite lands through "add basic land". This both removes potential abuse by selling them, and eliminates the annoyance of having these lands wasting space in your inventory.
This commit is contained in:
@@ -198,7 +198,13 @@ public class QuestEventDraft implements IQuestEvent {
|
|||||||
final Deck tournamentDeck = FModel.getQuest().getDraftDecks().get(QuestEventDraft.DECK_NAME).getHumanDeck();
|
final Deck tournamentDeck = FModel.getQuest().getDraftDecks().get(QuestEventDraft.DECK_NAME).getHumanDeck();
|
||||||
final Deck deck = new Deck(deckName);
|
final Deck deck = new Deck(deckName);
|
||||||
|
|
||||||
FModel.getQuest().getCards().addAllCards(tournamentDeck.getAllCardsInASinglePool().toFlatList());
|
// Add all cards except those added through "Add basic land" to quest inventory
|
||||||
|
List<PaperCard> cards = tournamentDeck.getAllCardsInASinglePool().toFlatList();
|
||||||
|
for (PaperCard c : cards) {
|
||||||
|
if ((!c.isVeryBasicLand()) || (c.isFoil())) {
|
||||||
|
FModel.getQuest().getCards().addSingleCard(c, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (tournamentDeck.get(DeckSection.Main).countAll() > 0) {
|
if (tournamentDeck.get(DeckSection.Main).countAll() > 0) {
|
||||||
deck.getOrCreate(DeckSection.Main).addAll(tournamentDeck.get(DeckSection.Main));
|
deck.getOrCreate(DeckSection.Main).addAll(tournamentDeck.get(DeckSection.Main));
|
||||||
|
|||||||
Reference in New Issue
Block a user