diff --git a/scripts/BloodSplatter.js b/scripts/BloodSplatter.js index 8e4b5f7..2bdee45 100644 --- a/scripts/BloodSplatter.js +++ b/scripts/BloodSplatter.js @@ -266,7 +266,7 @@ Hooks.on("updateActor", function (actor, updates) { return; let token = actor.parent ? canvas.tokens.get(actor.parent.id) - : canvas.tokens.placeables.find((t) => t.actor.id == actor.id); + : canvas.tokens.placeables.find((t) => t.actor?.id == actor.id); const hpMax = BloodSplatter.getHpMax(actor.data); const oldHpVal = updates.oldHpVal; //BloodSplatter.getHpVal(actor.data); const hpVal = BloodSplatter.getHpVal(updates);