Skip to content

Commit

Permalink
Fixed issue with code not comparing diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Jul 3, 2024
1 parent 34b5b55 commit 1b021ed
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 @@ -22,7 +22,7 @@ Hooks.once("init", function () {
// Set up main functionality when Foundry VTT is ready
Hooks.once("ready", async function () {
// Handle actor updates
Hooks.on("updateActor", async (actor, update, status, _userID) => {
Hooks.on("preUpdateActor", async (actor, update, status, _userID) => {
if (status.diff) {
const isHeal = isHealing(actor, update, status);
const token = canvas.tokens.placeables.find(
Expand Down

0 comments on commit 1b021ed

Please sign in to comment.