From 0156774124f4040c756a1e9e8f24c6eba7eb4ac3 Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Tue, 23 Apr 2024 12:03:22 +0200 Subject: [PATCH] fix(Deck): GetSideboards not returning Zillax Deluxe 3000 modules --- HearthDb/Deckstrings/Deck.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HearthDb/Deckstrings/Deck.cs b/HearthDb/Deckstrings/Deck.cs index c33207c0..48acb406 100644 --- a/HearthDb/Deckstrings/Deck.cs +++ b/HearthDb/Deckstrings/Deck.cs @@ -46,7 +46,7 @@ public class Deck /// /// Gets the card object for the given HeroDbfId /// - public Card GetHero() => Cards.GetFromDbfId(HeroDbfId, false); + public Card GetHero() => Cards.GetFromDbfId(HeroDbfId, collectibe: false); /// /// Converts (DbfId, Count) dictionary to (CardObject, Count). @@ -64,7 +64,7 @@ public Dictionary> GetSideboards() => Sideboards Owner = Cards.GetFromDbfId(x.Key), Sideboard = x.Value.Select(s => new { - Card = Cards.GetFromDbfId(s.Key), + Card = Cards.GetFromDbfId(s.Key, collectibe: false), Count = s.Value }).Where(s => s.Card != null).ToDictionary(x => x.Card, x => x.Count) })