Fixing error message for X-listed and R-listed cards.

This commit is contained in:
marcins78@gmail.com
2012-08-29 11:02:11 +00:00
parent f3d37d519c
commit 901d9cbd93

View File

@@ -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) {