From 5d04f1ab105c4bd641d9ead64ae802a491238f69 Mon Sep 17 00:00:00 2001 From: cadowtin Date: Sat, 24 Aug 2024 04:10:23 -0500 Subject: [PATCH] Fixed improper calling of my own functions --- scripts/hooks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/hooks.js b/scripts/hooks.js index 5d33ec7..27ce052 100644 --- a/scripts/hooks.js +++ b/scripts/hooks.js @@ -46,18 +46,18 @@ export async function updateWorldTime(total, diff) { } export async function pf2eEndTurn(combatant, _encounter, _userID) { - await updateFrequency(combatant.token.actor, 0, "endTurn"); + await updateFrequency(combatant.token.actor, 0, {}, "endTurn"); } export async function pf2eStartTurn(combatant, _encounter, _userID) { - await updateFrequency(combatant.token.actor, 0, "startTurn"); + await updateFrequency(combatant.token.actor, 0, {}, "startTurn"); } export async function combatRound(encounter, _changes, _diff, _userID) { const actors = encounter.combatants.contents.map( (combatant) => combatant.token.actor ); - await updateFrequencyOfActors(actors, 0, "endRound"); + await updateFrequencyOfActors(actors, 0, _diff, "endRound"); } @@ -65,5 +65,5 @@ export async function combatStart(encounter, _current) { const actors = encounter.combatants.contents.map( (combatant) => combatant.token.actor ); - await updateFrequencyOfActors(actors, 0, "startCombat"); + await updateFrequencyOfActors(actors, 0, {}, "startCombat"); } \ No newline at end of file