From 9d414364372f3d4e61cad151a683caa2d074b760 Mon Sep 17 00:00:00 2001 From: DieMango Date: Sun, 21 Jul 2024 18:45:25 +0200 Subject: [PATCH] Added support for Ambush skill --- src/Data/Skills/act_dex.lua | 10 ++++++++++ src/Export/Skills/act_dex.txt | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/Data/Skills/act_dex.lua b/src/Data/Skills/act_dex.lua index 79908d2f3b..11b9928fb6 100644 --- a/src/Data/Skills/act_dex.lua +++ b/src/Data/Skills/act_dex.lua @@ -106,6 +106,16 @@ skills["Ambush"] = { skillTypes = { [SkillType.Spell] = true, [SkillType.Movement] = true, [SkillType.Duration] = true, [SkillType.Travel] = true, [SkillType.Triggerable] = true, [SkillType.Cooldown] = true, [SkillType.LateConsumeCooldown] = true, }, statDescriptionScope = "secondary_debuff_skill_stat_descriptions", castTime = 0.3, + statMap = { + ["ambush_additional_critical_strike_chance_permyriad"] = { + mod("CritChance", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Ambush" }), + div = 100, + }, + ["vanishing_ambush_critical_strike_multiplier_+"] = { + mod("CritMultiplier", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Ambush" }), + }, + -- not excluding Exert for Two-Handed weapons, to simulate a potential weapon swap for skills with a duration ( Rage Vortex ) + }, baseFlags = { spell = true, movement = true, diff --git a/src/Export/Skills/act_dex.txt b/src/Export/Skills/act_dex.txt index 37b88833b4..0d20654bac 100644 --- a/src/Export/Skills/act_dex.txt +++ b/src/Export/Skills/act_dex.txt @@ -28,6 +28,16 @@ local skills, mod, flag, skill = ... #skill Ambush #flags spell movement duration travel +statMap = { + ["ambush_additional_critical_strike_chance_permyriad"] = { + mod("CritChance", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Ambush" }), + div = 100, + }, + ["vanishing_ambush_critical_strike_multiplier_+"] = { + mod("CritMultiplier", "BASE", nil, ModFlag.Melee, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Ambush" }), + }, + -- not excluding Exert for Two-Handed weapons, to simulate a potential weapon swap for skills with a duration ( Rage Vortex ) + }, #mods #skill AnimateWeapon