Skip to content

Commit

Permalink
Update dnd5e-character-monitor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jessev14 committed Nov 9, 2022
1 parent 4a80037 commit 5032224
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/dnd5e-character-monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5032224

Please sign in to comment.