This commit is contained in:
Dapoolp 2025-08-06 18:48:10 +02:00
parent 5a7d1d204c
commit 9ce66e93fb
3 changed files with 3 additions and 3 deletions

View file

@ -145,7 +145,7 @@ export default class D20Roll extends DHRoll {
config.targetSelection = true;
config.targets.forEach(target => {
const difficulty = config.roll.difficulty ?? target.difficulty ?? target.evasion;
target.hit = this.isCritical || roll.total >= difficulty;
target.hit = roll.isCritical || roll.total >= difficulty;
});
data.success = config.targets.some(target => target.hit)
} else if (config.roll.difficulty) {