effect-active
Dominic Gannaway 6 days ago
parent 823f7ff309
commit 0767c325bf

@ -178,7 +178,12 @@ export function effect_tracking() {
* @returns {boolean}
*/
export function effect_active() {
return active_effect !== null;
if (is_destroying_effect) {
return false;
}
return (
active_effect !== null || (active_reaction !== null && (active_reaction.f & UNOWNED) === 0)
);
}
/**

Loading…
Cancel
Save