You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The weights and actual attribute values of attributes that had already
reached maximum values were still taken into account when calculating
current and target ratios, leading to wrong effective weights.
Now, if weights are `str: 10 / dex: 2 / int: 1` and strength reaches its
limit, it will be treated as `str: 0 / dex: 2 / int: 1`
Copy file name to clipboardExpand all lines: src/Classes/PassiveSpec.lua
+26-11Lines changed: 26 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2205,23 +2205,38 @@ function PassiveSpecClass:GetAutoAttribute(cachedPlayerAttr, cachedPathAttrResul
2205
2205
end
2206
2206
end
2207
2207
2208
-
playerAttr.sumTotal=m_max(1, playerAttr.dex.total+playerAttr.int.total+playerAttr.str.total ) -- use m_max to protect against division by 0 (e.g. in "Omniscience"-like scenarios)
-- Calculating effective totals and ratios that exclude attributes that already exceed max
2227
+
playerAttr.effSumTotal=m_max(1, playerAttr.dex.effTotal+playerAttr.int.effTotal+playerAttr.str.effTotal ) -- use m_max to protect against division by 0 (e.g. in "Omniscience"-like scenarios)
0 commit comments