private void OnPerformPlayCard(object sender, object args) { var action = args as PlayCardAction; var card = action.card; if (card.Type.Contains(CardType.Consumable)) { var reaction = new BurnCardsAction(card); Container.AddReaction(reaction); } }
private void OnPerformPlayCard(object sender, object args) { var action = args as PlayCardAction; var card = action.card as CurseCard; if (card == null) { return; } var reaction = new BurnCardsAction(card); Container.AddReaction(reaction); }