Skip to content

Commit

Permalink
FIX(fulldps): propagate overrides from inside of initEnv (#8392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Jan 14, 2025
1 parent 42cb754 commit d3ae425
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ function calcs.initEnv(build, mode, override, specEnv)
env.calcsInput = build.calcsTab.input
env.mode = mode
env.spec = override.spec or build.spec
env.override = override
env.classId = env.spec.curClassId

modDB = new("ModDB")
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Calcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ function calcs.getMiscCalculator(build)
end
return function(override, useFullDPS)
local env, cachedPlayerDB, cachedEnemyDB, cachedMinionDB = calcs.initEnv(build, "CALCULATOR", override)
-- we need to preserve the override somewhere for use by possible trigger-based build-outs with overrides
env.override = override
calcs.perform(env)
if (useFullDPS ~= false or build.viewMode == "TREE") and usedFullDPS then
-- prevent upcoming calculation from using Cached Data and thus forcing it to re-calculate new FullDPS roll-up
Expand Down

0 comments on commit d3ae425

Please sign in to comment.