From 5032224526e7888964844aa14e75ce95bf1282a8 Mon Sep 17 00:00:00 2001 From: jessev14 Date: Wed, 9 Nov 2022 17:51:06 -0500 Subject: [PATCH] Update dnd5e-character-monitor.js --- scripts/dnd5e-character-monitor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/dnd5e-character-monitor.js b/scripts/dnd5e-character-monitor.js index b7af279..8d758f3 100644 --- a/scripts/dnd5e-character-monitor.js +++ b/scripts/dnd5e-character-monitor.js @@ -331,8 +331,9 @@ class CharacterMonitor { // If "showGMonly" setting enabled, whisper to all owners (this includes the GM). // Players may or may not actually see the message depending on the allowPlayerView setting. // Potentially change this to be depenent on setting if NPCs should be monitored (See health-monitor.js line 213) - const whisper = (game.settings.get(moduleName, "showGMonly") ? - game.users.filter(u => item.parent.testUserPermission(u, CONST.DOCUMENT_PERMISSION_LEVELS.OWNER)).map(u => u.id) : null); + const whisper = game.settings.get(moduleName, "showGMonly") + ? game.users.filter(u => item.parent.testUserPermission(u, CONST.DOCUMENT_PERMISSION_LEVELS.OWNER)).map(u => u.id) + : null; // Prepare common content for handlebars templates const hbsData = {