Extreme Pain
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -9,7 +10,32 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
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 =>
|
||||
{
|
||||
var extraDamage = 0;
|
||||
if (target.combatBuffSubmodule.HasBuff<Buffs.Corrosion>())
|
||||
{
|
||||
extraDamage = target.combatBuffSubmodule.GetBuff<Buffs.Corrosion>().unitedStackSubmodule.stackAmount;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user