[BUG] REGEN, FHEAL etc. are causing effect removal error when used with fixed mod
Hi :)
I found the following problem: When someone has the stable effect and some regeneration effect (here: FHEAL: 1), then the following error occurs at the beginning of the turn when the actor goes from -1 to 0 HP:
Code:
Script Error: [string "scripts/manager_effect.lua"]:185: attempt to index local 'nodeEffect' (a userdata value)
Sometimes it does not occur. When the regeneration/fheal effect uses a (EDIT: physical) die, then this error does not occur :) It looks like that a fixed number effect is "too quick" such that the node of the stable effect cannot be found for its removal (the chat message uses then the GM icon instead of the PC icon for example etc.; hence, my assumption, but I may be wrong)
Best,
Kelrugem
PS: Superteddy is already aware of a similar problem, but for completeness: When one uses the next round button while the actor has a heal effect and is not stabilized, then both can happen: A heal and a damage because of a failed stabilization roll :) That is probably due to that the next round button triggers everything while the next actor button probably does not reproduce that (heal stuff is at the beginning of the turn, stabilization at the end) :)
EDIT: Without extensions of course :)