using System.Collections.Generic; using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using SLSFramework.General; using UnityEngine; namespace Continentis.Mods.Basic.Cards { public class DualStrike : CardLogicBase { public override void SetUpLogicComponents() { AddLogicComponent(); } public override List PlayEffect(List targetList) { base.PlayEffect(targetList); CommandGroup mainGroup = TargetListCommandGroup(targetList, ExecutionMode.Sequential, ExecutionMode.Sequential, new CommandGroup(ExecutionMode.Parallel, new Cmd_PlayAnimation(user.characterView, "Attack"), new Cmd_ParamFunction(target => user.Attack(target, GetTargetedFinalDamage(target))) ), new CommandGroup(ExecutionMode.Parallel, new Cmd_PlayAnimation(user.characterView, "Attack"), new Cmd_ParamFunction(target => user.Attack(target, GetTargetedFinalDamage(target))) )); return new List { mainGroup }; } public override void ApplyAttributeChangesByCard() { LogicComponent().SetDamage_Strike(); } } }