Skip to content

Commit

Permalink
Fix for Beyond20RollRenderer Rolls
Browse files Browse the repository at this point in the history
Seems to have slipped last night
  • Loading branch information
Aeristoka authored and kakaroto committed Oct 3, 2020
1 parent b57e0fc commit 6924b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/roll20.js
Original file line number Diff line number Diff line change
Expand Up @@ -3489,7 +3489,7 @@ async function handleRenderedRoll(request) {

let rollDamages = null;
const originalRequest = request.request;
if (damage_rolls.length > 0 && originalRequest.rollAttack && !originalRequest.rollDamage) {
if (request.damage_rolls.length > 0 && originalRequest.rollAttack && !originalRequest.rollDamage) {
rollDamages = `beyond20-rendered-roll-button-${Math.random()}`;
properties["Roll Damages"] = `[Click](!${rollDamages})`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/roll20/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ async function handleRenderedRoll(request) {

let rollDamages = null;
const originalRequest = request.request;
if (damage_rolls.length > 0 && originalRequest.rollAttack && !originalRequest.rollDamage) {
if (request.damage_rolls.length > 0 && originalRequest.rollAttack && !originalRequest.rollDamage) {
rollDamages = `beyond20-rendered-roll-button-${Math.random()}`;
properties["Roll Damages"] = `[Click](!${rollDamages})`;
}
Expand Down

0 comments on commit 6924b68

Please sign in to comment.