Skip to content

Commit 1cce54f

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Arc skill on Storm Mages not working (#1004)
This is a temporary fix for the skill to work again. We should identify minion skills in a better way instead of counting the maximum number of levels Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 0c756b6 commit 1cce54f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Data/Skills/minion.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ skills["ArcSkeletonMageMinion"] = {
335335
"disable_visual_hit_effect",
336336
},
337337
levels = {
338-
[1] = { 1, 9, 2, statInterpolation = { 1, 1, 1, }, actorLevel = 1, },
339-
[2] = { 5, 103, 3, statInterpolation = { 1, 1, 1, }, actorLevel = 20, },
340-
[3] = { 21, 408, 4, statInterpolation = { 1, 1, 1, }, actorLevel = 40, },
341-
[4] = { 66, 1260, 5, statInterpolation = { 1, 1, 1, }, actorLevel = 60, },
338+
[1] = { 0.10000000149012, 1.8999999761581, 2, statInterpolation = { 3, 3, 1, }, actorLevel = 1, },
339+
[2] = { 0.10000000149012, 1.8999999761581, 3, statInterpolation = { 3, 3, 1, }, actorLevel = 20, },
340+
[3] = { 0.10000000149012, 1.8999999761581, 4, statInterpolation = { 3, 3, 1, }, actorLevel = 40, },
341+
[4] = { 0.10000000149012, 1.8999999761581, 5, statInterpolation = { 3, 3, 1, }, actorLevel = 60, },
342342
},
343343
},
344344
}

src/Export/Scripts/skills.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ directiveTable.set = function(state, args, out)
733733
statMapOrderIndex = statMapOrderIndex + 1
734734
end
735735
end
736-
if resolveInterpolation and #statsPerLevel > 1 then -- Don't resolve values for minion skills as it will break them
736+
if resolveInterpolation and #statsPerLevel > 5 then -- Don't resolve values for minion skills as it will break them
737737
table.insert(level, statRow.BaseResolvedValues[i])
738738
if state.skill.setIndex ~= 1 then
739739
-- Modify the correct statInterpolation value in the current set by offsetting the value from the count in the base set

src/Modules/CalcTools.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function calcLib.buildSkillInstanceStats(skillInstance, grantedEffect, statSet)
148148
if statSetLevel.statInterpolation[index] == 3 then
149149
-- Effectiveness interpolation
150150
if not availableEffectiveness then
151-
actorLevel = #statSet.levels == 1 and skillInstance.actorLevel or statSetLevel.actorLevel
151+
actorLevel = #statSet.levels < 5 and skillInstance.actorLevel or statSetLevel.actorLevel
152152
availableEffectiveness =
153153
data.gameConstants["SkillDamageBaseEffectiveness"] * (statSet.baseEffectiveness or 1)
154154
* (1 + (statSet.incrementalEffectiveness or 0) * (actorLevel - 1))

0 commit comments

Comments
 (0)