public override bool TestEffect(
            CardEffectState cardEffectState,
            CardEffectParams cardEffectParams)
        {
            List <CardState> hand = cardEffectParams.cardManager.GetHand(true);

            CardEffectFreezeRandomCard.FilterCards(hand);
            return(hand.Count >= 0);
        }
        public override IEnumerator ApplyEffect(
            CardEffectState cardEffectState,
            CardEffectParams cardEffectParams)
        {
            List <CardState> cards = cardEffectParams.cardManager.GetAllCards();

            CardEffectFreezeRandomCard.FilterCards(cards);

            foreach (var card in cards)
            {
                CardTraitData cardTraitData = new CardTraitData();
                cardTraitData.Setup("CardTraitFreeze");
                cardEffectParams.cardManager.AddTemporaryTraitToCard(card, cardTraitData, true, false);
            }
            yield break;
        }