Skip to content

Commit

Permalink
fix: update cardId
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuscechetto committed Nov 21, 2024
1 parent 083ca76 commit 54201ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 54201ed

Please sign in to comment.