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.
This commit is contained in:
LocalIdentity
2025-10-31 02:53:40 +11:00
parent 191bd6f37d
commit 4e2b94d09a

View File

@@ -1035,6 +1035,7 @@ function calcs.perform(env, skipEHP)
local enemyDB = env.enemyDB
-- Merge keystone modifiers
env.keystonesAdded = { }
modLib.mergeKeystones(env, env.modDB)
-- Build minion skills