diff --git a/src/module/sheets/creatureSheet.mjs b/src/module/sheets/creatureSheet.mjs index 87aafffa..895dc9e2 100644 --- a/src/module/sheets/creatureSheet.mjs +++ b/src/module/sheets/creatureSheet.mjs @@ -25,7 +25,6 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) { static TABS = { sheet: { tabs: [], - initial: 'meta' } } @@ -66,6 +65,19 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) { tabs.tabs.push(tab) } } + + if (!game.user.isGM) { + if (this.document.system.visibility.meta) { + tabs.initial = 'meta' + } else if (this.document.system.visibility.attacks) { + tabs.initial = 'attacks' + } else if (this.document.system.visibility.description) { + tabs.initial = 'description' + } else if (this.document.system.visibility.loot) { + tabs.initial = 'loot' + } + } + return tabs }