Skip to content

Commit 263d2ed

Browse files
TarikBeentjes61LocalIdentity
andauthored
Added support for Animate Weapon of Self Reflection and Energy Blade (#9526)
* Added support for Animate Weapon of Self Reflection and Energy Blade * Simplify logic Change the logic so it doesn't only work with AW of Self Reflection --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 5646399 commit 263d2ed

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

src/Data/Skills/act_dex.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ skills["AnimateWeaponAltX"] = {
312312
},
313313
statDescriptionScope = "minion_spell_skill_stat_descriptions",
314314
castTime = 0.6,
315-
minionHasItemSet = true,
316-
minionUses = {
317-
["Weapon 1"] = true,
318-
},
319315
minionList = {
320316
"AnimatedWeapon",
321317
},
@@ -329,6 +325,9 @@ skills["AnimateWeaponAltX"] = {
329325
minion = true,
330326
duration = true,
331327
},
328+
baseMods = {
329+
skill("minionUseMainHandWeapon", true),
330+
},
332331
qualityStats = {
333332
Default = {
334333
{ "base_number_of_animated_weapons_allowed", 0.05 },

src/Export/Skills/act_dex.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ local skills, mod, flag, skill = ...
7070

7171
#skill AnimateWeaponAltX
7272
#flags spell minion duration
73-
minionHasItemSet = true,
74-
minionUses = {
75-
["Weapon 1"] = true,
76-
},
7773
minionList = {
7874
"AnimatedWeapon",
7975
},
@@ -82,6 +78,7 @@ local skills, mod, flag, skill = ...
8278
mod("Multiplier:AnimatedWeapon", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff", unscalable = true })
8379
},
8480
},
81+
#baseMod skill("minionUseMainHandWeapon", true)
8582
#mods
8683

8784
#skill AnimateWeaponAltY

src/Modules/CalcActiveSkill.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function calcs.buildActiveSkillModList(env, activeSkill)
722722
activeEffect.srcInstance.skillMinionItemSetCalcs = nil
723723
activeEffect.srcInstance.skillMinionItemSet = nil
724724
end
725-
if activeSkill.skillData.minionUseBowAndQuiver and env.player.weaponData1.type == "Bow" then
725+
if (activeSkill.skillData.minionUseBowAndQuiver and env.player.weaponData1.type == "Bow") or activeSkill.skillData.minionUseMainHandWeapon then
726726
minion.weaponData1 = env.player.weaponData1
727727
elseif env.theIronMass and minionType == "RaisedSkeleton" then
728728
minion.weaponData1 = env.player.weaponData1

0 commit comments

Comments
 (0)