Backstab
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -7,9 +8,28 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class Backstab : CardLogicBase
|
||||
{
|
||||
private int _sharpnessCount = 0;
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
return base.PlayEffect(targetList);
|
||||
CommandGroup mainGroup = TargetListCommandGroup( targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_PlaySFX("SFX_Basic_SwordStrike"),
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
|
||||
new Cmd_ParamFunction<CharacterBase>(target =>
|
||||
{
|
||||
_sharpnessCount = 0;
|
||||
if (user.combatBuffSubmodule.HasBuff<Buffs.Sharpness>())
|
||||
{
|
||||
_sharpnessCount = user.combatBuffSubmodule.GetBuff<Buffs.Sharpness>().unitedStackSubmodule.stackAmount;
|
||||
}
|
||||
user.Attack(target, GetFinalDamage(target));
|
||||
}),
|
||||
new Cmd_ParamFunction<CharacterBase>(target =>
|
||||
{
|
||||
CreateCharacterBuff<Buffs.Sharpness>(_sharpnessCount).Apply(user, user, this);
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user