From 9f2704838decabd8e070f87d6c259a303d09436e Mon Sep 17 00:00:00 2001 From: "marcin.sciesinski" Date: Wed, 28 Aug 2019 13:43:01 -0700 Subject: [PATCH] Additional validation --- .../com/gempukku/lotro/cards/build/BuiltLotroCardBlueprint.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/BuiltLotroCardBlueprint.java b/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/BuiltLotroCardBlueprint.java index afea6306a..51ef77912 100644 --- a/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/BuiltLotroCardBlueprint.java +++ b/gemp-lotr/gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/BuiltLotroCardBlueprint.java @@ -644,6 +644,8 @@ public class BuiltLotroCardBlueprint implements LotroCardBlueprint { throw new InvalidCardDefinitionException("Card has to have a title"); if (cardType == null) throw new InvalidCardDefinitionException("Card has to have a type"); + if (cardType != CardType.THE_ONE_RING && side == null) + throw new InvalidCardDefinitionException("Only The One Ring does not have a side defined"); if (siteNumber != 0 && cardType != CardType.SITE && cardType != CardType.MINION)