From f9e10550ad7bbaf3a80f1e7a9cc20573304a2730 Mon Sep 17 00:00:00 2001 From: ThaumRystra Date: Fri, 6 Sep 2024 23:17:53 +0200 Subject: [PATCH] Fixed healthbar display in tabletop --- app/imports/client/ui/tabletop/TabletopCreatureCard.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/imports/client/ui/tabletop/TabletopCreatureCard.vue b/app/imports/client/ui/tabletop/TabletopCreatureCard.vue index 5048decd..da20895f 100644 --- a/app/imports/client/ui/tabletop/TabletopCreatureCard.vue +++ b/app/imports/client/ui/tabletop/TabletopCreatureCard.vue @@ -88,7 +88,7 @@ export default { meteor: { healthBars() { const folderIds = CreatureProperties.find({ - 'ancestors.id': this.model._id, + 'root.id': this.model._id, type: 'folder', groupStats: true, hideStatsGroup: true, @@ -98,7 +98,7 @@ export default { // Get the properties that need to be shown as a health bar return CreatureProperties.find({ - 'ancestors.id': this.model._id, + 'root.id': this.model._id, 'parentId': { $nin: folderIds, }, @@ -107,6 +107,7 @@ export default { healthBarNoDamage: { $ne: true }, inactive: { $ne: true } , removed: { $ne: true }, + total: {$ne: 0}, }, { sort: { order: 1,