public void RemoveFromDeck(Entity entity, int turn) { var revealed = RevealedCards.FirstOrDefault(r => r.Entity == entity); if (revealed != null) { RevealedCards.Remove(revealed); } var ce = MoveCardEntity(entity, Deck, Removed, turn); Log("RemoveFromDeck", ce); }
public void RemoveFromDeck(Entity entity, int turn) { var revealed = RevealedCards.FirstOrDefault(r => r.Entity == entity); if (revealed != null) { RevealedCards.Remove(revealed); } var ce = MoveCardEntity(entity, Deck, Removed, turn); UpdateRevealedEntity(ce, turn, true); VerifyCardMatchesDeck(ce); Log(ce); }