Iteration on effects tab of character sheet

This commit is contained in:
Kakeman89 2020-10-19 13:04:48 -04:00
parent a40f7adb9c
commit 90fab8d89f
5 changed files with 16 additions and 8 deletions

View file

@ -13,7 +13,7 @@ export const highlightCriticalSuccessFailure = function(message, html, data) {
// Ensure it is an un-modified d20 roll
const isD20 = (d.faces === 20) && ( d.results.length === 1 );
if ( !isD20 ) return;
const isModifiedRoll = ("success" in d.rolls[0]) || d.options.marginSuccess || d.options.marginFailure;
const isModifiedRoll = ("success" in d.results[0]) || d.options.marginSuccess || d.options.marginFailure;
if ( isModifiedRoll ) return;
// Highlight successes and failures