Fixed critical threshold applying to reactions

This commit is contained in:
WBHarry 2026-01-13 20:47:43 +01:00
parent c958acabe6
commit 9473250f0c
2 changed files with 4 additions and 2 deletions

View file

@ -35,7 +35,9 @@ export default class D20Roll extends DHRoll {
get isCritical() {
if (!this.d20._evaluated) return;
return this.d20.total >= this.data.system.criticalThreshold;
const criticalThreshold = this.options.actionType === 'reaction' ? 20 : this.data.system.criticalThreshold;
return this.d20.total >= criticalThreshold;
}
get hasAdvantage() {