Skip to content

Commit

Permalink
Fixed improper calling of my own functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 24, 2024
1 parent 858351d commit 5d04f1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@ 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");
}


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");
}

0 comments on commit 5d04f1a

Please sign in to comment.