From 1c14f061264ba9231cdabe37ed3aa9517dde0e04 Mon Sep 17 00:00:00 2001 From: Paliak <91493239+Paliak@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:23:03 +0200 Subject: [PATCH] FIX: don't reuse env for fulldps directly --- src/Modules/Calcs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/Calcs.lua b/src/Modules/Calcs.lua index 34d3f4752ba..52b44249720 100644 --- a/src/Modules/Calcs.lua +++ b/src/Modules/Calcs.lua @@ -139,7 +139,7 @@ function calcs.getMiscCalculator(build) -- prevent upcoming calculation from using Cached Data and thus forcing it to re-calculate new FullDPS roll-up -- without this, FullDPS increase/decrease when for node/item/gem comparison would be all 0 as it would be comparing -- A with A (due to cache reuse) instead of A with B - local fullDPS = calcs.calcFullDPS(build, "CALCULATOR", override, { cachedPlayerDB = cachedPlayerDB, cachedEnemyDB = cachedEnemyDB, cachedMinionDB = cachedMinionDB, env = env, accelerate = accelerate }) + local fullDPS = calcs.calcFullDPS(build, "CALCULATOR", override, { cachedPlayerDB = cachedPlayerDB, cachedEnemyDB = cachedEnemyDB, cachedMinionDB = cachedMinionDB, env = nil, accelerate = accelerate }) env.player.output.SkillDPS = fullDPS.skills env.player.output.FullDPS = fullDPS.combinedDPS env.player.output.FullDotDPS = fullDPS.TotalDotDPS