40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using SLSFramework.General;
|
|
using System.Collections.Generic;
|
|
using Continentis.MainGame.Commands;
|
|
using Continentis.Mods.Basic.Buffs;
|
|
|
|
namespace Continentis.Mods.Basic.Cards.Assassin
|
|
{
|
|
public class BladeOfFear : CardLogicBase
|
|
{
|
|
protected override void SetUpLogicComponents()
|
|
{
|
|
AddLogicComponent<CardLogicComponent_Attack>();
|
|
}
|
|
|
|
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(() =>
|
|
{
|
|
CreateCharacterBuff<Sharpness>(GetAttribute("BuffStack")).Apply(user, user, this);
|
|
}));
|
|
return new List<CommandBase> { mainGroup };
|
|
}
|
|
|
|
public override void ApplyAttributeChangesByCard()
|
|
{
|
|
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
|
|
}
|
|
}
|
|
}
|