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