Skip to content

Commit

Permalink
Fix for null whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Apr 2, 2024
1 parent 7597657 commit 7a49d79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
},
Expand Down

0 comments on commit 7a49d79

Please sign in to comment.