Hitting Ice Block removes bleak outcome stacks
Posted: Sun Oct 25, 2015 8:18 pm
If an enemy with bleak outcome stacks is placed in an iceblock and then hit with bleak outcome causing damage while still frozen, they lose all stacks of bleak outcome.
I think this is due to an interaction between ice blocks causing immunity to new negative status effects, immunity to new status effects being added by giving the effect 0 duration, and bleak outcome applying the new duration when merging stacks (my only hesitation is that I'm not sure Bleak Outcome is magical, not other, and negative_status_effect_immune code excludes 'other' type effects):
EDIT: Was able to confirm bleak outcome is a magical effect.
From FROZEN effect in data/timed_effects/Physical.lua
code for negative_status_effect_immune in mod/class/actor.lua
stack merge code from BLEAK_OUTCOME code in (AoU DLC) timed_effect.lua
I think this is due to an interaction between ice blocks causing immunity to new negative status effects, immunity to new status effects being added by giving the effect 0 duration, and bleak outcome applying the new duration when merging stacks (my only hesitation is that I'm not sure Bleak Outcome is magical, not other, and negative_status_effect_immune code excludes 'other' type effects):
EDIT: Was able to confirm bleak outcome is a magical effect.
From FROZEN effect in data/timed_effects/Physical.lua
Code: Select all
eff.sefid = self:addTemporaryValue("negative_status_effect_immune", 1)
Code: Select all
if e.status == "detrimental" and e.type ~= "other" and self:attr("negative_status_effect_immune") then
p.dur = 0
Code: Select all
on_merge = function(self, old_eff, new_eff)
old_eff.dur = new_eff.dur