Skip to content
Snippets Groups Projects
Commit d6ff5357 authored by yutio888's avatar yutio888
Browse files

Bring back the fix: The duration of an existing effect will not be reduced by...

Bring back the fix: The duration of an existing effect will not be reduced by setting a new effect with a shorter duration (controlled by on_merge for some  effects). This means that an effect will not be removed if you save against another application of the same effect.
This was not functioning due to a careless code removal.
parent 905a4a6d
No related branches found
No related tags found
No related merge requests found
......@@ -7630,6 +7630,7 @@ function _M:on_set_temporary_effect(eff_id, e, p)
p.getName = e.getName
p.resolveSource = e.resolveSource
local old = self.tmp[eff_id]
local olddur = old and not e.on_merge and old.dur or 0 -- let mergable effects handle their own duration
-- Adjust duration based on saves
if p.apply_power and (save_for_effects[e.type] or p.apply_save) then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment