forked from GitHub-Mirrors/foundry-sw5e
Iteration on effects tab of character sheet
This commit is contained in:
parent
a40f7adb9c
commit
90fab8d89f
5 changed files with 16 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue