Skip to content

Commit

Permalink
Merge pull request #76 from etiquettestartshere/1.1.18
Browse files Browse the repository at this point in the history
getProperty
  • Loading branch information
etiquettestartshere authored May 16, 2024
2 parents 96a3441 + 7812730 commit b2c07f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/effective-tray.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b2c07f0

Please sign in to comment.