public void PlaySelectedCard(int creatureId, Creature creature)
        {
            if (!Hands.ContainsKey(creatureId))
            {
                return;
            }
            StreamlootsHand hand = Hands[creatureId];

            if (!hand.IsShown)
            {
                hand.IsShown = true;
            }
            if (hand.SelectedCard == null)
            {
                SelectFirstAvailableCard(hand);
                UpdateLastInteraction(creatureId);
                StateHasChanged();
                return;
            }

            UpdateLastInteraction(creatureId);
            hand.PlaySelectedCard(creature);
            SendCardCommand("Play Cards");
            hand.SelectedCardsHaveBeenPlayed();
        }
Esempio n. 2
0
        public void PlaySelectedCard(int creatureId)
        {
            if (!Hands.ContainsKey(creatureId))
            {
                return;
            }
            StreamlootsHand hand = Hands[creatureId];

            if (hand.SelectedCard == null)
            {
                return;
            }

            hand.PlaySelectedCard();
            SendCardCommand("Play Cards");
            hand.SelectedCardsHaveBeenPlayed();
        }