37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.MainGame.Commands;
|
|
using SLSFramework.General;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
{
|
|
public class ExtremePain : CardLogicBase
|
|
{
|
|
protected override List<CommandBase> PlayEffect(List<CharacterBase> 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 =>
|
|
{
|
|
user.Attack(target, GetFinalDamage(target));
|
|
}));
|
|
|
|
return new List<CommandBase> { mainGroup };
|
|
}
|
|
|
|
public override int GetFinalDamage(CharacterBase target, List<string> elementalTags = null)
|
|
{
|
|
var baseDamage = base.GetFinalDamage(target, elementalTags);
|
|
var extraDamage = 0;
|
|
if (target.combatBuffSubmodule.HasBuff<Buffs.Corrosion>())
|
|
{
|
|
extraDamage = target.combatBuffSubmodule.GetBuff<Buffs.Corrosion>().unitedStackSubmodule.stackAmount;
|
|
}
|
|
return baseDamage + extraDamage;
|
|
}
|
|
}
|
|
}
|