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

30 lines
949 B
C#
Raw 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 SLSUtilities.General;
namespace Continentis.Mods.Basic.Cards
{
/// <summary>
/// 筑城Fortification
/// 能力牌为使用者提供一个同名的Buff。
/// </summary>
public class Fortification : CardLogicBase
{
private const string BUFF_FORTIFICATION_STACK = "Buff_Fortification_Stack";
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
{
return SingleCommandGroup(
new Cmd_PlayAnimation(user.characterView, "Skill"),
Cmd.Do(() =>
{
int stacks = GetAttribute(BUFF_FORTIFICATION_STACK);
CreateCharacterBuff<Buffs.Fortification>(stacks).Apply(user, user, this);
})
);
}
}
}