2025-11-09 23:47:10 -06:00
|
|
|
using Continentis.MainGame.Card;
|
|
|
|
|
using Continentis.MainGame.Character;
|
|
|
|
|
using SLSFramework.General;
|
|
|
|
|
using System.Collections.Generic;
|
2025-11-10 12:57:04 -05:00
|
|
|
using Continentis.MainGame.Commands;
|
|
|
|
|
using Continentis.Mods.Basic.Buffs;
|
2025-11-09 23:47:10 -06:00
|
|
|
|
2025-11-11 23:19:52 -06:00
|
|
|
namespace Continentis.Mods.Basic.Cards.Assassin
|
2025-11-09 23:47:10 -06:00
|
|
|
{
|
|
|
|
|
public class BladeOfFear : CardLogicBase
|
|
|
|
|
{
|
2025-11-15 12:17:34 -05:00
|
|
|
public override void SetUpLogicComponents()
|
2025-11-10 12:57:04 -05:00
|
|
|
{
|
|
|
|
|
AddLogicComponent<CardLogicComponent_Attack>();
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-15 12:17:34 -05:00
|
|
|
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
2025-11-09 23:47:10 -06:00
|
|
|
{
|
2025-11-10 12:57:04 -05:00
|
|
|
base.PlayEffect(targetList);
|
|
|
|
|
|
|
|
|
|
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
|
|
|
|
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
|
|
|
|
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
|
|
|
|
{
|
2025-11-15 12:17:34 -05:00
|
|
|
user.Attack(target, GetTargetedFinalDamage(target));
|
2025-11-10 12:57:04 -05:00
|
|
|
}));
|
|
|
|
|
mainGroup.AddCommand(new Cmd_Function(() =>
|
|
|
|
|
{
|
2025-11-10 23:56:25 -06:00
|
|
|
CreateCharacterBuff<Sharpness>(GetAttribute("BuffStack")).Apply(user, user, this);
|
2025-11-10 12:57:04 -05:00
|
|
|
}));
|
|
|
|
|
return new List<CommandBase> { mainGroup };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void ApplyAttributeChangesByCard()
|
|
|
|
|
{
|
|
|
|
|
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
|
2025-11-09 23:47:10 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|