31 lines
886 B
C#
31 lines
886 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
|
|
{
|
|
public class MudBarrier : CardLogicBase
|
|
{
|
|
public override void SetUpLogicComponents()
|
|
{
|
|
AddLogicComponent<CardLogicComponent_Defense>();
|
|
}
|
|
|
|
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
|
{
|
|
base.PlayEffect(targetList);
|
|
|
|
return Cmd.Parallel(
|
|
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
|
Cmd.After(0.2f, () => user.AddBlock(GetAttribute("Block")))
|
|
);
|
|
}
|
|
|
|
public override void ApplyAttributeChangesByCard()
|
|
{
|
|
LogicComponent<CardLogicComponent_Defense>().SetBlock();
|
|
}
|
|
}
|
|
} |