Skip to content

Commit

Permalink
Fix up waiting for DiceSonNice
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Oct 28, 2024
1 parent 8f2e602 commit 0be49cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/helpers/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function doSomethingOnDamageApply() {
}

export async function handleDiceSoNice(msg = null) {
if (msg === null) return false;
return game.dice3d.waitFor3DAnimationByMessageID(message?.id);
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Hooks.on("ready", () => {
Hooks.on("preDeleteCombat", preDeleteCombat);
// You died Elden Ring
Hooks.on("applyTokenStatusEffect", applyTokenStatusEffect);
Hooks.on("createChatMessage", async function (msg, _status, userid) {
Hooks.on("preCreateChatMessage", async function (msg, _status, userid) {
if (game.user.id === userid) {
if (!getSetting("enabled")) return;
debugLog({
Expand Down

0 comments on commit 0be49cf

Please sign in to comment.