using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSUtilities.General;
namespace Continentis.Mods.Basic.Cards
{
///
/// 筑城(Fortification):
/// 能力牌,为使用者提供一个同名的Buff。
///
public class Fortification : CardLogicBase
{
private const string BUFF_FORTIFICATION_STACK = "Buff_Fortification_Stack";
public override CommandGroup PlayEffect(List targetList)
{
return SingleCommandGroup(
new Cmd_PlayAnimation(user.characterView, "Skill"),
Cmd.Do(() =>
{
int stacks = GetAttribute(BUFF_FORTIFICATION_STACK);
CreateCharacterBuff(stacks).Apply(user, user, this);
})
);
}
}
}