Skip to content

Commit d3ae425

Browse files
authored
FIX(fulldps): propagate overrides from inside of initEnv (#8392)
1 parent 42cb754 commit d3ae425

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ function calcs.initEnv(build, mode, override, specEnv)
366366
env.calcsInput = build.calcsTab.input
367367
env.mode = mode
368368
env.spec = override.spec or build.spec
369+
env.override = override
369370
env.classId = env.spec.curClassId
370371

371372
modDB = new("ModDB")

src/Modules/Calcs.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ function calcs.getMiscCalculator(build)
133133
end
134134
return function(override, useFullDPS)
135135
local env, cachedPlayerDB, cachedEnemyDB, cachedMinionDB = calcs.initEnv(build, "CALCULATOR", override)
136-
-- we need to preserve the override somewhere for use by possible trigger-based build-outs with overrides
137-
env.override = override
138136
calcs.perform(env)
139137
if (useFullDPS ~= false or build.viewMode == "TREE") and usedFullDPS then
140138
-- prevent upcoming calculation from using Cached Data and thus forcing it to re-calculate new FullDPS roll-up

0 commit comments

Comments
 (0)