From 901d9cbd93285b65c7a6bf12f8a5f3af4a909f03 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 29 Aug 2012 11:02:11 +0000 Subject: [PATCH] Fixing error message for X-listed and R-listed cards. --- .../com/gempukku/lotro/game/formats/DefaultLotroFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java index 0139b2ce3..ec5845b88 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/DefaultLotroFormat.java @@ -257,14 +257,14 @@ public class DefaultLotroFormat implements LotroFormat { for (String blueprintId : _restrictedCards) { Integer count = cardCountByBaseBlueprintId.get(blueprintId); if (count != null && count > 1) - throw new DeckInvalidException("Deck contains more than one copy of an R-listed card: " + blueprintId); + throw new DeckInvalidException("Deck contains more than one copy of an R-listed card: " + GameUtils.getFullName(_library.getLotroCardBlueprint(blueprintId))); } // Banned cards for (String blueprintId : _bannedCards) { Integer count = cardCountByBaseBlueprintId.get(blueprintId); if (count != null && count > 0) - throw new DeckInvalidException("Deck contains a copy of an X-listed card: " + blueprintId); + throw new DeckInvalidException("Deck contains a copy of an X-listed card: " + GameUtils.getFullName(_library.getLotroCardBlueprint(blueprintId))); } } catch (IllegalArgumentException exp) {