Files
Continentis/Assets/Mods/Basic/Cards/Scripts/Knight/Skill/BloodCompensation.cs
SoulliesOfficial ac98ec3aef 更新
2026-04-17 12:01:50 -04:00

32 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using Continentis.Mods.Basic.Buffs;
using SLSUtilities.General;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
/// <summary>
/// 鲜血代偿Blood Compensation
/// 保护一个队友数个回合但为自己施加易伤Buff
/// </summary>
public class BloodCompensation : CardLogicBase
{
private const string BUFF_PROTECTING_COUNT = "Buff_Protecting_Count";
private const string BUFF_VULNERABLE_COUNT = "Buff_Vulnerable_Count";
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
{
return ForEachTarget(targetList, target => Cmd.Parallel(
new Cmd_PlayAnimation(user.characterView, "Skill"),
Cmd.Do(() =>
{
LogicComponent<CardLogicComponent_Protect>().GenerateProtection(user, target, GetAttribute(BUFF_PROTECTING_COUNT));
CreateCharacterBuff<Vulnerable>(GetAttribute(BUFF_VULNERABLE_COUNT)).Apply(user, user, this);
})
));
}
}
}