From 44be992d4114c85cd82c46d40dba4f0a42d167c9 Mon Sep 17 00:00:00 2001 From: Mykhailo Budiakov Date: Fri, 18 Jul 2025 08:08:30 +0300 Subject: [PATCH] added foundry.utils.deepClone to avoid updating rollbackFlag --- module/other/inline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/other/inline.js b/module/other/inline.js index be683df..40cb560 100644 --- a/module/other/inline.js +++ b/module/other/inline.js @@ -5,8 +5,8 @@ export async function handleInlineActions(btnWithAction, messageId) { if (!actor) return; if (action === 'rollback-skill-failure-state') { - const rollbackFlag =message.getFlag("deltagreen", "rollbacks"); - await actor.update(rollbackFlag); + const rollbackFlag = message.getFlag("deltagreen", "rollbacks"); + await actor.update(foundry.utils.deepClone(rollbackFlag)); toggleAllSkillFailures(rollbackFlag)