From 16fbc9d5fc1da141c01305bfd7747d0844651da2 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 23 Aug 2024 15:25:18 +0200 Subject: [PATCH] mtgmatcher: Better decouple a reprint from both SPL and PF19 --- mtgmatcher/filter.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mtgmatcher/filter.go b/mtgmatcher/filter.go index b68234e6..ee1e04b5 100644 --- a/mtgmatcher/filter.go +++ b/mtgmatcher/filter.go @@ -403,9 +403,21 @@ func filterPrintings(inCard *InputCard, editions []string) (printings []string) } switch { case strings.HasPrefix(set.Name, "MagicFest "+maybeYear): + switch inCard.Name { + case "Lightning Bolt": + if !inCard.Contains("Fest") { + continue + } + } case set.Code == "PLG21": case set.Code == "PEWK": case set.Code == "SLP": + switch inCard.Name { + case "Lightning Bolt": + if !inCard.Contains("Secret") { + continue + } + } default: continue }