Fixed healthbar display in tabletop
This commit is contained in:
@@ -88,7 +88,7 @@ export default {
|
|||||||
meteor: {
|
meteor: {
|
||||||
healthBars() {
|
healthBars() {
|
||||||
const folderIds = CreatureProperties.find({
|
const folderIds = CreatureProperties.find({
|
||||||
'ancestors.id': this.model._id,
|
'root.id': this.model._id,
|
||||||
type: 'folder',
|
type: 'folder',
|
||||||
groupStats: true,
|
groupStats: true,
|
||||||
hideStatsGroup: true,
|
hideStatsGroup: true,
|
||||||
@@ -98,7 +98,7 @@ export default {
|
|||||||
|
|
||||||
// Get the properties that need to be shown as a health bar
|
// Get the properties that need to be shown as a health bar
|
||||||
return CreatureProperties.find({
|
return CreatureProperties.find({
|
||||||
'ancestors.id': this.model._id,
|
'root.id': this.model._id,
|
||||||
'parentId': {
|
'parentId': {
|
||||||
$nin: folderIds,
|
$nin: folderIds,
|
||||||
},
|
},
|
||||||
@@ -107,6 +107,7 @@ export default {
|
|||||||
healthBarNoDamage: { $ne: true },
|
healthBarNoDamage: { $ne: true },
|
||||||
inactive: { $ne: true } ,
|
inactive: { $ne: true } ,
|
||||||
removed: { $ne: true },
|
removed: { $ne: true },
|
||||||
|
total: {$ne: 0},
|
||||||
}, {
|
}, {
|
||||||
sort: {
|
sort: {
|
||||||
order: 1,
|
order: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user