コード例 #1
0
        public void UpdateEnemyCounter(Card card)
        {
            if (opponentCounterFreezed)
            {
                return;
            }

            if (card.Equals(new Card(HearthDb.Cards.GetFromName("Lady Liadrin", Locale.enUS))))
            {
                opponentCounterFreezed = true;
                return;
            }

            var rightCards = Settings.CardsToCheck;

            foreach (var check in rightCards)
            {
                if (card.Id == check.Id)
                {
                    enemy.Update(card, true);
                }
            }
        }
コード例 #2
0
        public void UpdatePlayerCounter(Card card)
        {
            if (playerCounterFreezed)
            {
                return;
            }

            var rightCards = Settings.CardsToCheck;

            if (card.Equals(new Card(HearthDb.Cards.GetFromName("Lady Liadrin", Locale.enUS))))
            {
                playerCounterFreezed = true;
                return;
            }

            foreach (var check in rightCards)
            {
                if (card.Id == check.Id)
                {
                    normal.Update(card, true);
                    break;
                }
            }
        }