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); }
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); }