Card爆改!
This commit is contained in:
@@ -12,24 +12,22 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public override void TargetingEffect(CharacterBase target)
|
||||
{
|
||||
SetAttribute("DisplayHellfireStack", GetAttribute("HellfireStack"));
|
||||
card.SetAttribute("DisplayHellfireStack", card.GetAttribute("HellfireStack"));
|
||||
}
|
||||
|
||||
public override void UntargetingEffect()
|
||||
{
|
||||
SetAttribute("DisplayHellfireStack", GetAttribute("HellfireStack"));
|
||||
card.SetAttribute("DisplayHellfireStack", card.GetAttribute("HellfireStack"));
|
||||
}
|
||||
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList, ExecutionMode.Parallel, ExecutionMode.Parallel,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
Debug.Log(target.data.className + " is ablaze in purgatory!");
|
||||
|
||||
Basic_Hellfire buff = new Basic_Hellfire(GetAttribute("HellfireStack"));
|
||||
Basic_Hellfire buff = new Basic_Hellfire(card.GetAttribute("HellfireStack"));
|
||||
buff.Apply(target, user, this);
|
||||
}));
|
||||
|
||||
@@ -39,7 +37,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
int offsetFromInt = user.GetAttribute("OffsetFromIntelligence");
|
||||
SetVariableAttribute("HellfireStack", offsetFromInt);
|
||||
card.SetVariableAttribute("HellfireStack", offsetFromInt);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,20 +10,20 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class SoulCleave : CardLogicBase
|
||||
{
|
||||
protected override void SetUpLogicComponents()
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
AddLogicComponent<CardLogicComponent_LifeSteal>();
|
||||
}
|
||||
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
int hurt = user.Attack(target, GetFinalDamage(target)).hurtDamage;
|
||||
int hurt = user.Attack(target, GetTargetedFinalDamage(target)).hurtDamage;
|
||||
LogicComponent<CardLogicComponent_LifeSteal>().LifeSteal(hurt);
|
||||
|
||||
Basic_Hellfire hellfireBuff = target.combatBuffSubmodule.GetBuff<Basic_Hellfire>();
|
||||
@@ -33,9 +33,9 @@ namespace Continentis.Mods.Basic.Cards
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
public override int GetFinalDamage(CharacterBase target, List<string> elementalTags = null)
|
||||
public override int GetTargetedFinalDamage(CharacterBase target, List<string> elementalTags = null)
|
||||
{
|
||||
int damage = base.GetFinalDamage(target, elementalTags);
|
||||
int damage = base.GetTargetedFinalDamage(target, elementalTags);
|
||||
Basic_Hellfire hellfireBuff = target.combatBuffSubmodule.GetBuff<Basic_Hellfire>();
|
||||
int hellfireStack = hellfireBuff != null ? hellfireBuff.unitedStackSubmodule.stackAmount : 0;
|
||||
damage += hellfireStack * 2;
|
||||
|
||||
Reference in New Issue
Block a user