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 Cover : CardLogicBase { public override void SetUpLogicComponents() { AddLogicComponent(); AddLogicComponent(); } public override CommandGroup PlayEffect(List targetList) { return ForEachTarget(targetList, target => Cmd.Parallel( new Cmd_PlayAnimation(user.characterView, "Skill"), Cmd.Do(() => user.AddBlock(GetAttribute("Block"))), Cmd.Do(() => LogicComponent().GenerateProtection(user, target, GetAttribute("BuffCount_Protecting"))) )); } public override void ApplyAttributeChangesByCard() { LogicComponent().SetBlock_Fortitude(); } } }