From 77e3ba68ccfd775f8ec9a8d2bbc77381bdb9eb49 Mon Sep 17 00:00:00 2001 From: Paliak <91493239+Paliak@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:55:20 +0100 Subject: [PATCH] FIX(fulldps): propagate overrides from inside of initEnv --- src/Modules/CalcSetup.lua | 1 + src/Modules/Calcs.lua | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Modules/CalcSetup.lua b/src/Modules/CalcSetup.lua index fba8c3bab9..fba475732b 100644 --- a/src/Modules/CalcSetup.lua +++ b/src/Modules/CalcSetup.lua @@ -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") diff --git a/src/Modules/Calcs.lua b/src/Modules/Calcs.lua index a92162ebd0..a4734c3b44 100644 --- a/src/Modules/Calcs.lua +++ b/src/Modules/Calcs.lua @@ -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