Skip to content

Commit 5007a5f

Browse files
committed
FIX: query generation error when only using fulldps as a weight
1 parent 42b786d commit 5007a5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Classes/TradeQueryGenerator.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ function TradeQueryGeneratorClass.WeightedRatioOutputs(baseOutput, newOutput, st
170170
end
171171
end
172172
for _, statTable in ipairs(statWeights) do
173+
if statTable.stat == "FullDPS" and not (baseOutput["FullDPS"] and newOutput["FullDPS"]) then
174+
meanStatDiff = meanStatDiff + ratioModSums("TotalDPS", "TotalDotDPS", "CombinedDPS") * statTable.weightMult
175+
end
173176
meanStatDiff = meanStatDiff + ratioModSums(statTable.stat) * statTable.weightMult
174177
end
175178
return meanStatDiff

0 commit comments

Comments
 (0)