Skip to content

Commit

Permalink
fix Player.VerifyCardMatchesDeck
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zeier committed Mar 14, 2016
1 parent bd2ff1e commit 0d2d392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/Hearthstone/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private void VerifyCardMatchesDeck(CardEntity ce)
{
if(string.IsNullOrEmpty(ce?.Entity?.CardId) || ce.Created || ce.Returned || ce.Stolen)
return;
if(IsLocalPlayer && (DeckList.Instance.ActiveDeckVersion?.Cards.Any(c => c.Id == ce.Entity.CardId) ?? false))
if(IsLocalPlayer && (DeckList.Instance.ActiveDeckVersion?.Cards.All(c => c.Id != ce.Entity.CardId) ?? false))
DrawnCardsMatchDeck = false;
DrawnCardIds.Add(ce.Entity.CardId);
DrawnCardIdsTotal.Add(ce.Entity.CardId);
Expand Down

0 comments on commit 0d2d392

Please sign in to comment.