From 7a49d790e3b35260d457007f2ec4fa8d596544db Mon Sep 17 00:00:00 2001 From: cadowtin Date: Tue, 2 Apr 2024 14:25:15 -0500 Subject: [PATCH] Fix for null whisper --- scripts/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/module.js b/scripts/module.js index 4356ab5..be1de95 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -8,14 +8,14 @@ import { getSetting } from "./helpers.js"; Hooks.once("ready", function () { game.rulesLawyer = { - create: function (data = { whisper: null, evil: false }) { + create: function (evil = false) { const effectData = { vid: data.evil ? RULES_LAWYER_EVIL_VID : RULES_LAWYER_VID, sfx: data.evil ? RULES_LAWYER_EVIL_SFX : RULES_LAWYER_SFX, }; createRulesLawyerEffect( effectData.vid, - { chatMessage: { whisper } }, + [...game.users.keys()], effectData.sfx ); },