Files
Continentis/Assets/Mods/Basic/Cards/Scripts/ObsoleteGeneral/CommonHolyWater.cs

41 lines
1.4 KiB
C#
Raw Normal View History

2025-10-23 00:49:44 -04:00
using System;
using System.Collections.Generic;
using System.Linq;
using Continentis.MainGame;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
2025-10-24 09:11:22 -04:00
public class CommonHolyWater : CardLogicBase
2025-10-23 00:49:44 -04:00
{
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_SelectHandCards>();
}
2025-11-08 09:50:55 -05:00
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
2025-10-23 00:49:44 -04:00
{
base.PlayEffect(targetList);
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
LogicComponent<CardLogicComponent_SelectHandCards>().AddSelectionCommands(ref mainGroup, "Select at most 3 Status or Curse cards to be exhausted.", 3);
2025-11-08 09:50:55 -05:00
return new List<CommandBase> { mainGroup };
2025-10-23 00:49:44 -04:00
}
public bool SelectCondition(CardInstance card)
{
CardType type = card.cardLogic.contentSubmodule.cardType;
return type == CardType.Status || type == CardType.Curse;
}
public void SelectEffect(CardInstance card)
{
2025-10-30 23:31:29 -04:00
CommandQueueManager.Instance.AddCommand(card.deck.ExhaustCard(card));
2025-10-23 00:49:44 -04:00
}
}
}