Decks now can contain foil or tengwar cards from alternate sets (than the one accepted by format).

This commit is contained in:
marcins78@gmail.com
2011-12-26 17:07:26 +00:00
parent ec112e1cdb
commit d978f90417

View File

@@ -69,6 +69,7 @@ public abstract class DefaultLotroFormat implements LotroFormat {
}
private void validateSet(String blueprintId) throws DeckInvalidException {
blueprintId = _library.getBaseBlueprintId(blueprintId);
for (int validSet : _validSets)
if (blueprintId.startsWith(validSet + "_")
|| _library.hasAlternateInSet(blueprintId, validSet))