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 { protected override void SetUpLogicComponents() { AddLogicComponent(); } protected override CommandBase 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, GetFinalDamage(target))) ), new CommandGroup(ExecutionMode.Parallel, new Cmd_PlayAnimation(user.characterView, "Attack"), new Cmd_ParamFunction(target => user.Attack(target, GetFinalDamage(target))) )); return mainGroup; } public override void ApplyAttributeChangesByCard() { LogicComponent().SetDamage_Strike(); } } }