Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Aug 3, 2021
1 parent fe06d2c commit 2ebe272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/BloodSplatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2ebe272

Please sign in to comment.