Hitting Ice Block removes bleak outcome stacks

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
shadcor
Low Yeek
Posts: 5
Joined: Wed Oct 14, 2015 6:38 pm

Hitting Ice Block removes bleak outcome stacks

#1 Post by shadcor »

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: Select all

eff.sefid = self:addTemporaryValue("negative_status_effect_immune", 1)
code for negative_status_effect_immune in mod/class/actor.lua

Code: Select all

if e.status == "detrimental" and e.type ~= "other" and self:attr("negative_status_effect_immune") then
		p.dur = 0
stack merge code from BLEAK_OUTCOME code in (AoU DLC) timed_effect.lua

Code: Select all

on_merge = function(self, old_eff, new_eff)
		old_eff.dur = new_eff.dur

Post Reply