From b63581acc5d746261d9bb1a358b55fcdb4d18528 Mon Sep 17 00:00:00 2001 From: PhallenCassidy Date: Sat, 8 Oct 2016 22:10:44 -0400 Subject: [PATCH] Added Hobbit deck restrictions --- .../lotro/game/formats/LotroFormatLibrary.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/LotroFormatLibrary.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/LotroFormatLibrary.java index dd3af1a96..145709604 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/LotroFormatLibrary.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/formats/LotroFormatLibrary.java @@ -71,6 +71,19 @@ public class LotroFormatLibrary { for (Object valid : validCards) { format.addValidCard((String) valid); } + + //Additional Hobbit Draft deck restrictions + JSONArray limit2Cards = (JSONArray) formatDef.get("limit2"); + if (limit2Cards != null) + for (Object limit2 : limit2Cards) { + format.addLimit2Card((String) limit2); + } + + JSONArray limit3Cards = (JSONArray) formatDef.get("limit3"); + if (limit3Cards != null) + for (Object limit3 : limit3Cards) { + format.addLimit2Card((String) limit3); + } _allFormats.put(formatCode, format);