using System.Collections.Generic; using Continentis.MainGame.Card; using Continentis.MainGame.Character; using Continentis.MainGame.Commands; using SLSFramework.General; namespace Continentis.Mods.Basic.Cards { /// /// 顺劈斩:对全体敌人造成物理斩击伤害,数值受到力量和敏捷增减影响。 /// AOE范围由卡牌数据的目标配置决定,Logic层无需额外处理。 /// public class Cleave : CardLogicBase { public override void SetUpLogicComponents() { AddLogicComponent(); } public override CommandGroup PlayEffect(List targetList) { return Cmd.Sequential( new Cmd_PlayAnimation(user.characterView, "Attack"), ForEachTarget(targetList, target => Cmd.Do(() => AttackTarget(target, GetTargetedFinalDamage(target)))) ); } public override void ApplyAttributeChangesByCard() { LogicComponent().SetDamage_Slash(); } } }