using System.Collections.Generic; using Continentis.MainGame; using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using SLSFramework.General; namespace Continentis.Mods.Basic.Cards { public class Tactic : CardLogicBase { public override void SetUpLogicComponents() { AddLogicComponent().SetEffect(SelectEffect); } public override CommandGroup PlayEffect(List targetList) { CommandGroup mainGroup = Cmd.Sequential(new Cmd_PlayAnimation(user.characterView, "Skill")); LogicComponent() .AddSelectionCommands(ref mainGroup, "Card_Basic_Tactic_SelectionCommandTitle".Localize(), 1, true); mainGroup.AddCommand(new Cmd_DrawCards(user.deckSubmodule, 1)); return mainGroup; } private void SelectEffect(CardInstance card) { CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card, true)); } } }