30 lines
949 B
C#
30 lines
949 B
C#
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);
|
||
})
|
||
);
|
||
}
|
||
}
|
||
}
|