diff --git a/scripts/effective-tray.mjs b/scripts/effective-tray.mjs index 61d6f22..3769f0f 100644 --- a/scripts/effective-tray.mjs +++ b/scripts/effective-tray.mjs @@ -250,7 +250,7 @@ export class effectiveDamage { * Methods lacking documentation below share these parameters. */ static _damageTray(message, html) { - if (message.flags?.dnd5e?.roll?.type === "damage") { + if (foundry.utils.getProperty(message, "flags.dnd5e.roll.type") === "damage") { if (!game.user.isGM) { if (message.whisper.length && !message.whisper.includes(game.user.id)) return; const damageApplication = document.createElement("effective-damage-application");