diff --git a/src/module/rolls/check.ts b/src/module/rolls/check.ts index a31967ec..212eef0d 100644 --- a/src/module/rolls/check.ts +++ b/src/module/rolls/check.ts @@ -107,6 +107,16 @@ export class DS4Check extends DiceTerm { this.fumble = results[0].failure ?? false; } + /** + * @override + * @remarks "min" and "max" are filtered out because they are irrelevant for + * {@link DS4Check}s and only result in some dice rolls being highlighted + * incorrectly. + */ + getResultCSS(result: DiceTerm.Result): (string | null)[] { + return super.getResultCSS(result).filter((cssClass) => cssClass !== "min" && cssClass !== "max"); + } + static readonly DEFAULT_CHECK_TARGET_NUMBER = 10; static readonly DEFAULT_MAXIMUM_COUP_RESULT = 1; static readonly DEFAULT_MINIMUM_FUMBLE_RESULT = 20;