34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
|
|
|
|
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<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
|
{
|
|
base.PlayEffect(targetList);
|
|
|
|
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
|
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
|
new Cmd_ParamFunction<CharacterBase>(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<CommandBase> { mainGroup };
|
|
}
|
|
}
|
|
}
|