using System.Collections.Generic; using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using SLSUtilities.General; namespace Continentis.Mods.Basic.Cards { public class Recollection : CardLogicBase { public override void SetUpLogicComponents() { var select = AddLogicComponent(); select.selectEffect = SelectEffect; } public override CommandGroup PlayEffect(List targetList) { CommandGroup mainGroup = Cmd.Sequential(new Cmd_PlayAnimation(user.characterView, "Skill")); List discardedCards = user.deckSubmodule.DiscardPile; LogicComponent() .AddSelectionCommands(ref mainGroup, discardedCards, "Card_Basic_Recollection_SelectCustomCards_Title".Localize(card), GetAttribute("Draw_Card_Count")); return mainGroup; } private void SelectEffect(CardInstance card) { CommandQueueManager.Instance.AddCommand(new Cmd_DrawCards(card.deck, new List() { card })); } } }