From 54201ed705ec26c0a249405bb07e87f1b3b79d76 Mon Sep 17 00:00:00 2001 From: mateuscechetto Date: Thu, 21 Nov 2024 15:54:47 -0300 Subject: [PATCH] fix: update cardId --- .../FlyoutControls/DeckEditor/DeckEditorViewModel.cs | 4 ++-- Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Hearthstone Deck Tracker/FlyoutControls/DeckEditor/DeckEditorViewModel.cs b/Hearthstone Deck Tracker/FlyoutControls/DeckEditor/DeckEditorViewModel.cs index 490a48aa7..44917d1be 100644 --- a/Hearthstone Deck Tracker/FlyoutControls/DeckEditor/DeckEditorViewModel.cs +++ b/Hearthstone Deck Tracker/FlyoutControls/DeckEditor/DeckEditorViewModel.cs @@ -175,7 +175,7 @@ public bool ConstructedCardLimits } } - public string CardCount => $"{Deck.Cards.Sum(x => x.Count)} / {(Cards.Any(x => x.Id is HearthDb.CardIds.Collectible.Neutral.PrinceRenathal or HearthDb.CardIds.Collectible.Neutral.PrinceRenathalCore) ? 40 : 30)}"; + public string CardCount => $"{Deck.Cards.Sum(x => x.Count)} / {(Cards.Any(x => x.Id is HearthDb.CardIds.Collectible.Neutral.PrinceRenathal or HearthDb.CardIds.Collectible.Neutral.PrinceRenathalCorePlaceholder) ? 40 : 30)}"; public CostFilter SelectedCostFilter { @@ -425,7 +425,7 @@ private void AddCardToDeck(Card card) private void UpdateCardCountWarning() { var count = Cards.Sum(x => x.Count); - if(Cards.Any(x => x.Id is HearthDb.CardIds.Collectible.Neutral.PrinceRenathal or HearthDb.CardIds.Collectible.Neutral.PrinceRenathalCore)) + if(Cards.Any(x => x.Id is HearthDb.CardIds.Collectible.Neutral.PrinceRenathal or HearthDb.CardIds.Collectible.Neutral.PrinceRenathalCorePlaceholder)) { Warnings &= ~(DeckEditorWarnings.LessThan30Cards | DeckEditorWarnings.MoreThan30Cards); if(count == 40) diff --git a/Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs b/Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs index 04d1fa067..ea06bf2f6 100644 --- a/Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs +++ b/Hearthstone Deck Tracker/LogReader/Handlers/PowerHandler.cs @@ -237,7 +237,7 @@ public void Handle(string logLine, IHsGameState gameState, IGame game) { if(entity.Info.GuessedCardState != GuessedCardState.None) entity.Info.GuessedCardState = GuessedCardState.Revealed; - if(entity.CardId is Collectible.Neutral.PrinceRenathalCore or + if(entity.CardId is Collectible.Neutral.PrinceRenathalCorePlaceholder or Collectible.Neutral.PrinceRenathal or Collectible.Warrior.SporeEmpressMoldara or NonCollectible.Warrior.SporeEmpressMoldara_ReplicatingSporeToken)