From 583b652fc4985b5cc4583689f65f7e831612e29d Mon Sep 17 00:00:00 2001 From: Ganonsmasher <70282672+Ganonsmasher@users.noreply.github.com> Date: Tue, 15 Dec 2020 18:08:29 -0500 Subject: [PATCH] Found a fix for toggles. It doesn't fix the problem of their property being absent on the stats page cards, but they can compute properly and disable their children with this. --- .../api/creature/denormalise/recomputeInactiveProperties.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/imports/api/creature/denormalise/recomputeInactiveProperties.js b/app/imports/api/creature/denormalise/recomputeInactiveProperties.js index eb988f8b..87fb1d64 100644 --- a/app/imports/api/creature/denormalise/recomputeInactiveProperties.js +++ b/app/imports/api/creature/denormalise/recomputeInactiveProperties.js @@ -7,7 +7,6 @@ export default function recomputeInactiveProperties(ancestorId){ {disabled: true}, // Everything can be disabled {type: 'buff', applied: false}, // Buffs can be applied {type: 'item', equipped: {$ne: true}}, - {type: 'toggle', toggleResult: false}, {type: 'spell', prepared: {$ne: true}, alwaysPrepared: {$ne: true}}, ], };