From 7e225271648361f1b60d2b51bcc92c87e21c9f29 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 2 Feb 2014 09:22:49 +0000 Subject: [PATCH] - Send unsupported card names to the console so that the user is aware of which cards failed to load when the decks were parsed. --- forge-core/src/main/java/forge/deck/CardPool.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-core/src/main/java/forge/deck/CardPool.java b/forge-core/src/main/java/forge/deck/CardPool.java index 0496d38250f..37f67e59da3 100644 --- a/forge-core/src/main/java/forge/deck/CardPool.java +++ b/forge-core/src/main/java/forge/deck/CardPool.java @@ -77,8 +77,10 @@ public class CardPool extends ItemPool { cardName = cp.getName(); artCount = isCommonCard ? StaticData.instance().getCommonCards().getArtCount(cardName, setCode) : 1; } - else + else { + System.err.println(String.format("An unsupported card was found when loading Forge decks: %s", cardName)); cp = PaperCard.createUnsuportedCard(cardName); + } if (artIndexExplicitlySet || artCount <= 1) { // either a specific art index is specified, or there is only one art, so just add the card