更新
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
_sharpnessCount = 0;
|
||||
if (user.combatBuffSubmodule.HasBuff<Buffs.Sharpness>())
|
||||
_sharpnessCount = user.combatBuffSubmodule.GetBuff<Buffs.Sharpness>().unitedStackSubmodule.stackAmount;
|
||||
user.Attack(target, GetTargetedFinalDamage(target));
|
||||
AttackTarget(target, GetTargetedFinalDamage(target));
|
||||
}),
|
||||
Cmd.Do(() =>
|
||||
CreateCharacterBuff<Buffs.Sharpness>(_sharpnessCount).Apply(user, user, this)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
|
||||
CommandGroup mainGroup = ForEachTarget(targetList, target => Cmd.Parallel(
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
Cmd.After(0.2f, () => user.Attack(target, GetTargetedFinalDamage(target)))
|
||||
Cmd.After(0.2f, () => AttackTarget(target, GetTargetedFinalDamage(target)))
|
||||
));
|
||||
|
||||
mainGroup.AddCommand(Cmd.Do(() =>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
@@ -19,13 +20,13 @@ namespace Continentis.Mods.Basic.Cards.Assassin
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_PlaySFX("SFX_Basic_SwordStrike"),
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
|
||||
Cmd.Do(() => user.Attack(target, GetTargetedFinalDamage(target)))
|
||||
Cmd.Do(() => AttackTarget(target, GetTargetedFinalDamage(target)))
|
||||
));
|
||||
}
|
||||
|
||||
public override int GetTargetedFinalDamage(CharacterBase target, List<string> elementalTags = null)
|
||||
public override int GetTargetedFinalDamage(CharacterBase target, AttackContext ctx = null)
|
||||
{
|
||||
var baseDamage = base.GetTargetedFinalDamage(target, elementalTags);
|
||||
var baseDamage = base.GetTargetedFinalDamage(target, ctx);
|
||||
var extraDamage = 0;
|
||||
if (target.combatBuffSubmodule.HasBuff<Buffs.Corrosion>())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user