Skip to content

Commit

Permalink
Merge pull request #23 from napolitanod/1.1.1
Browse files Browse the repository at this point in the history
1.1.1
  • Loading branch information
napolitanod authored Jan 30, 2023
2 parents 6027de1 + e149445 commit 5026ae4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"styles/napolitano-scripts.css"
],
"title": "_Napolitano Scripts",
"version": "1.1.0",
"version": "1.1.1",
"url": "https://github.com/napolitanod/napolitano-scripts",
"manifest": "https://raw.githubusercontent.com/napolitanod/napolitano-scripts/master/module.json",
"download": "https://github.com/napolitanod/napolitano-scripts/releases/download/1.1.0/module.zip"
"download": "https://github.com/napolitanod/napolitano-scripts/releases/download/1.1.1/module.zip"
}
4 changes: 2 additions & 2 deletions scripts/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* if(game.modules.get('napolitano-scripts')?.active){
await game.napolitano.postRollSkill(this, roll, skillId);
}
* Add to rollAbilitySave
* Add to rollAbilityTest
if(game.modules.get('napolitano-scripts')?.active){
await game.napolitano.postRollAbilityTest(this, roll, abilityId);
}
* Add to rollAbilityTest
* Add to rollAbilitySave
if(game.modules.get('napolitano-scripts')?.active){
await game.napolitano.postRollAbilitySave(this, roll, abilityId);
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Hooks.once('ready', async function() {

HOOKIDS['dnd5e.preRollSkill'] = Hooks.on("dnd5e.preRollSkill", async (actor, roll, ability) => {
const hook = "dnd5e.preRollSkill", data = {actor: actor, roll: roll, ability: ability, options: {}}
if(ability === 'ste') roll = workflow.play('passWithoutTrace', data, {hook: 'preRollSkill'})
if(ability === 'ste') roll = workflow.play('passWithoutTrace', data, {hook: hook})
});

HOOKIDS['dnd5e.rollSkill'] = Hooks.on("dnd5e.rollSkill", async (actor, roll, ability) => {
Expand Down

0 comments on commit 5026ae4

Please sign in to comment.