예제 #1
0
 public void PlayCard(StreamlootsCard cardToPlay)
 {
     if (cardToPlay == null)
     {
         return;
     }
     if (cardToPlay.IsSecret)
     {
         HubtasticBaseStation.ShowValidationIssue(CharacterId, DndCore.ValidationAction.Stop, "Cannot play secret cards.");
         return;
     }
     Cards.Remove(cardToPlay);
     CardsToPlay.Add(cardToPlay);
 }
예제 #2
0
        public bool PlayCard(StreamlootsCard cardToPlay, Creature creature)
        {
            if (cardToPlay == null)
            {
                return(false);
            }
            if (cardToPlay.IsSecret)
            {
                HubtasticBaseStation.ShowValidationIssue(CharacterId, ValidationAction.Stop, "Cannot play secret cards.");
                return(false);
            }

            Cards.Remove(cardToPlay);
            CardsToPlay.Add(cardToPlay);
            TriggerCardPlayed(cardToPlay, creature);
            return(true);
        }