From 338f8982a31f6ab7d2464b33e71634ff176a4caa Mon Sep 17 00:00:00 2001 From: myk Date: Mon, 4 Mar 2013 11:43:57 +0000 Subject: [PATCH] remove openable packs from shop list when sold so they don't reappear when the shop is reentered --- src/main/java/forge/quest/QuestUtilCards.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forge/quest/QuestUtilCards.java b/src/main/java/forge/quest/QuestUtilCards.java index bc7c4ec744b..7a3ddb651c0 100644 --- a/src/main/java/forge/quest/QuestUtilCards.java +++ b/src/main/java/forge/quest/QuestUtilCards.java @@ -270,6 +270,7 @@ public final class QuestUtilCards { public void buyPack(final OpenablePack booster, final int value) { if (this.qa.getCredits() >= value) { this.qa.setCredits(this.qa.getCredits() - value); + this.qa.getShopList().remove(booster); this.addAllCards(booster.getCards()); } } @@ -510,7 +511,6 @@ public final class QuestUtilCards { * Generate cards in shop. */ public void generateCardsInShop() { - Iterable cardList = null; if (qc.getFormat() == null) { cardList = CardDb.instance().getAllCards(); }