From 105044260645517908374d8e8f5f35f0ee5e4e83 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Tue, 26 Jul 2022 13:43:55 +0200 Subject: [PATCH] Children of triggers are now inactive on the sheet --- .../computation/buildComputation/computeInactiveStatus.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/imports/api/engine/computation/buildComputation/computeInactiveStatus.js b/app/imports/api/engine/computation/buildComputation/computeInactiveStatus.js index b794a61e..fcb2be07 100644 --- a/app/imports/api/engine/computation/buildComputation/computeInactiveStatus.js +++ b/app/imports/api/engine/computation/buildComputation/computeInactiveStatus.js @@ -31,9 +31,10 @@ function childrenActive(prop){ switch (prop.type){ // Only equipped items have active children case 'item': return !!prop.equipped; - // The children of actions are always inactive + // The children of actions, spells, and triggers are always inactive case 'action': return false; case 'spell': return false; + case 'trigger': return false; // The children of notes are always inactive case 'note': return false; // Other children are active