Skip to content

Commit

Permalink
extra push
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Jun 26, 2024
1 parent 25da986 commit 260e040
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 @@ -15,7 +15,7 @@ const COLORS = {
Hooks.once("ready", async function () {
Hooks.on("updateActor", async (actor, update, status, _userID) => {
if (status.diff) {
const hpChanged = update.system.attributes.hp.value;
const hpChanged = !!update?.system?.attributes?.hp?.value;
const dmgTaken = (status?.damageTaken ?? 0) > 0;
const tok = canvas.tokens.placeables.find(
(token) => token.actor.id === actor.id
Expand Down

0 comments on commit 260e040

Please sign in to comment.