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.
This commit is contained in:
Ganonsmasher
2020-12-15 18:08:29 -05:00
parent df317a8942
commit 583b652fc4

View File

@@ -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}},
],
};