Commit 8ade1001321a72a9ae4a4deb107fafccee301745

Authored by DarkGod
2 parents 6dc5f3c6 2024c58f

Merge branch 'fix-cursed-aura' into 'master'

Fix the cursed-aura bloating your savefile

https://discord.com/channels/434391495877853205/434394801916477450/1004402333058338816
This is a sanity check to avoid infinite loop like this, because I can't find all the misuses of setEffect

See merge request !849
... ... @@ -121,8 +121,7 @@ function _M:setEffect(eff_id, dur, p, silent)
121 121 if dur <= 0 then return self:removeEffect(eff_id) end
122 122 dur = math.floor(dur)
123 123
124   - p.__orig_params = table.clone(p, true)
125   -
  124 + p.__orig_params = table.clone(p, true, {__orig_params=true})
126 125 local ed = _M.tempeffect_def[eff_id]
127 126 for k, e in pairs(ed.parameters) do
128 127 if not p[k] then p[k] = e end
... ...