using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using SLSFramework.General; using System.Collections.Generic; namespace Continentis.Mods.Basic.Cards.Cleric { public class DivineProtection : CardLogicBase { protected override List PlayEffect(List targetList) { base.PlayEffect(targetList); CommandGroup mainGroup = TargetListCommandGroup(targetList, new Cmd_PlayAnimation(user.characterView, "Skill"), new Cmd_ParamFunction(0.2f, target => { user.AddBlock(GetAttribute("Block")); })); mainGroup.AddCommand(new Cmd_Function(() => { this.SetAttribute("Block", this.GetAttribute("Block") + this.GetAttribute("BlockStack")); })); return new List { mainGroup }; } } }