Skip to content

Commit

Permalink
Fix v12 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Eligarf committed Jun 17, 2024
1 parent 1275741 commit 4444153
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v4.3.1
* Fix Roll.evaluate warning in V12
* Update pt-BR.json (thanks Kharmans)

# v4.3.0
* Added Condition Lab & Triggler support for Active Effect customizations.
* Centralized the refresh perception calls
Expand Down
2 changes: 1 addition & 1 deletion scripts/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class Engine {
if (game.user.isGM)
ui.notifications.warn(
`${game.i18n.localize('stealthy.source.clt.beforeLabel')} '${name}' ${game.i18n.localize('stealthy.source.clt.afterLabel')}`);
console.error(`stealthy | Combat Utility Belt couldn't find the '${name}' effect so Stealthy will use the default one. Add your customized effect to CLT or select a different effect source in Game Settings`);
console.error(`stealthy | Condition Lab & Triggler couldn't find the '${name}' effect so Stealthy will use the default one. Add your customized effect to CLT or select a different effect source in Game Settings`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/systems/dnd5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Engine5e extends Engine {
}
}
else {
let disadvantageRoll = await new Roll(`1d20`).evaluate({ async: true });
const disadvantageRoll = await new Roll(`1d20`).evaluate();
const delta = dice.results[0].result - disadvantageRoll.total;
if (delta > 0) {
perception.disadvantaged -= delta;
Expand Down

0 comments on commit 4444153

Please sign in to comment.