Skip to content

Commit

Permalink
perf(chat-message): correct use of get flag function instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
SouOWendel committed Dec 21, 2023
1 parent 7e73668 commit 11873b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/documents/chat-message.mjs
Expand Up @@ -43,7 +43,7 @@ export function displayChatActionButtons(message, html, data) {
*/
export function highlightCriticalSuccessFailure(message, html, data) {

const itemMessageFlag = message.flags.ordemparanormal.messageRoll;
const itemMessageFlag = message.getFlag('ordemparanormal', 'messageRoll');

if ( !message.isRoll || !message.isContentVisible || !message.rolls.length ) return;
// Highlight rolls where the first part is a d20 roll
Expand Down

0 comments on commit 11873b6

Please sign in to comment.