Skip to content

Commit

Permalink
Fixed skill roll hook to on, not once
Browse files Browse the repository at this point in the history
  • Loading branch information
Eligarf committed Apr 8, 2024
1 parent 3e7ec00 commit 36ac329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v3.16.1
* Fixed a merge error that turned off skill roll hooks after the first one

# v3.16.0
* Shuffled some code to use the `init` hook rather than the `setup` hook
* Unified Stealthy's handling of door controls with actor tokens
Expand Down
2 changes: 1 addition & 1 deletion scripts/systems/dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Engine5e extends Engine {
}
});

Hooks.once('dnd5e.rollSkill', async (actor, roll, skill) => {
Hooks.on('dnd5e.rollSkill', async (actor, roll, skill) => {
if (skill === 'ste') {
await this.rollStealth(actor, roll);
}
Expand Down
1 change: 0 additions & 1 deletion scripts/systems/pf1.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export class EnginePF1 extends Engine {
"stealthy": flag
},
};
Stealthy.log('Effect', effect);
await actor.createEmbeddedDocuments('Item', [effect]);
}
else {
Expand Down

0 comments on commit 36ac329

Please sign in to comment.