Files
Continentis/Assets/Mods/Basic/Cards/Scripts/ObsoleteGeneral/CommonHolyWater.cs
SoulliesOfficial 5d09ef7b53 到IronWall
2025-10-30 23:31:29 -04:00

41 lines
1.4 KiB
C#

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
{
public class CommonHolyWater : CardLogicBase
{
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_SelectHandCards>();
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
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);
return mainGroup;
}
public bool SelectCondition(CardInstance card)
{
CardType type = card.cardLogic.contentSubmodule.cardType;
return type == CardType.Status || type == CardType.Curse;
}
public void SelectEffect(CardInstance card)
{
CommandQueueManager.Instance.AddCommand(card.deck.ExhaustCard(card));
}
}
}