using System.Collections.Generic; using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using Continentis.Mods.Basic.Buffs; using SLSFramework.General; using UnityEngine; namespace Continentis.Mods.Basic.Cards { public class Guard : CardLogicBase { public override List PlayEffect(List targetList) { CommandGroup mainGroup = TargetListCommandGroup(targetList, new Cmd_PlayAnimation(user.characterView, "Skill"), new Cmd_ParamFunction((target) => { Protected protectedBuff = CreateCharacterBuff(); protectedBuff.Apply(target, user, this); Protecting protectingBuff = CreateCharacterBuff(target, GetAttribute("BuffCount_Protecting"), protectedBuff); protectingBuff.Apply(user, user, this); })); return new List { mainGroup }; } } }