Skip to content

Commit 4e2b94d

Browse files
author
LocalIdentity
committed
Fix keystone list not wiping between calc perform
`env.keystonesAdded` was no longer getting reset before we start merging keystone effects. The new `modLib.mergeKeystones` keeps that table on the environment, and `wipeEnv` does not clear it. After the first calculation pass the table is full; on the next pass (any time the build recalculates by toggling a flask, change a config option, etc.) the merge sees every keystone as “already added” and skips adding their modLists. So every keystone loses its effects after the first recalculation.
1 parent 191bd6f commit 4e2b94d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ function calcs.perform(env, skipEHP)
10351035
local enemyDB = env.enemyDB
10361036

10371037
-- Merge keystone modifiers
1038+
env.keystonesAdded = { }
10381039
modLib.mergeKeystones(env, env.modDB)
10391040

10401041
-- Build minion skills

0 commit comments

Comments
 (0)