25 lines
825 B
C#
25 lines
825 B
C#
using System.Collections.Generic;
|
|
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.MainGame.Commands;
|
|
using SLSFramework.General;
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
{
|
|
public class BodyAsShield : CardLogicBase
|
|
{
|
|
public override void SetUpLogicComponents()
|
|
{
|
|
AddLogicComponent<CardLogicComponent_Protect>();
|
|
}
|
|
|
|
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("BuffCount_Protecting")))
|
|
));
|
|
}
|
|
}
|
|
} |