From 6cd71b5a5f2d5604cd7cb0d3be4f20b4b3f32652 Mon Sep 17 00:00:00 2001 From: jalensailin Date: Sat, 8 Jun 2024 02:15:36 -0400 Subject: [PATCH] fix lethality toggle (`data.` to `system.`) --- module/actor/actor-sheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 0501a23..0597030 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -504,7 +504,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { const itemId = event.target.getAttribute("item-id"); const isLethal = event.target.getAttribute("is-lethal") === "true"; const item = this.actor.items.find((i) => i.id === itemId); - item.update({ "data.isLethal": !isLethal }); + item.update({ "system.isLethal": !isLethal }); } _showNewEditTypeSkillDialog(targetSkill, currentLabel, currentGroup) {