From 418ffa0af3d86cfd7b2bad49cade4dc3e40d50b7 Mon Sep 17 00:00:00 2001 From: Agetian Date: Mon, 14 Jan 2013 03:12:24 +0000 Subject: [PATCH] - Cards in sideboard are now marked in the quest shop as cards present in deck. The bug with the card not being sold correctly from the sideboard is still there for now though. --- .../gui/deckeditor/controllers/CEditorQuestCardShop.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/forge/gui/deckeditor/controllers/CEditorQuestCardShop.java b/src/main/java/forge/gui/deckeditor/controllers/CEditorQuestCardShop.java index 05375f93d08..4b643691272 100644 --- a/src/main/java/forge/gui/deckeditor/controllers/CEditorQuestCardShop.java +++ b/src/main/java/forge/gui/deckeditor/controllers/CEditorQuestCardShop.java @@ -173,6 +173,11 @@ public final class CEditorQuestCardShop extends ACEditorBase e : deck.getSideboard()) { + final CardPrinted card = e.getKey(); + final Integer amount = result.get(card); + result.put(card, Integer.valueOf(amount == null ? 1 : 1 + amount.intValue())); + } } return result; }