fixed rests on actions with undefined usesUsed

This commit is contained in:
Stefan Zermatten
2022-11-28 14:50:41 +02:00
parent bee90a7a80
commit ec8b9c209c

View File

@@ -105,7 +105,7 @@ export function resetProperties(creatureId, resetFilter, actionContext) {
type: {
$in: ['action', 'spell']
},
usesUsed: { $ne: 0 },
usesUsed: { $nin: [0, undefined] },
};
CreatureProperties.find(actionFilter, {
fields: { name: 1, usesUsed: 1 }