Skip to content

Commit 5694ba7

Browse files
author
LocalIdentity
committed
Simplify logic
Change the logic so it doesn't only work with AW of Self Reflection
1 parent e97552e commit 5694ba7

3 files changed

Lines changed: 5 additions & 13 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 & 5 deletions
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
@@ -759,10 +759,6 @@ function calcs.buildActiveSkillModList(env, activeSkill)
759759
end
760760
end
761761
end
762-
-- handles animate weapon of self reflection when using energy blade
763-
if activeEffect.grantedEffect.id == "AnimateWeaponAltX" and env.modDB.conditions["AffectedByEnergyBlade"] then
764-
minion.weaponData1 = env.player.weaponData1
765-
end
766762
end
767763
elseif activeEffect.srcInstance and not (activeEffect.gemData and activeEffect.gemData.secondaryGrantedEffect) then
768764
activeEffect.srcInstance.skillMinionCalcs = nil

0 commit comments

Comments
 (0)