Skip to content

Commit

Permalink
Add check for damageTaken Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Jun 26, 2024
1 parent 29b9fcb commit 2dc7a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Hooks.once("ready", async function () {
if (userID == game.user.id) {
if (status.diff) {
const hpChanged = update.system.attributes.hp.value;
const dmgTaken = status.damageTaken;
const dmgTaken = !!status?.damageTaken;
const tok = canvas.tokens.placeables.find(
(token) => token.actor.id === actor.id
);
Expand Down

0 comments on commit 2dc7a1b

Please sign in to comment.