This commit is contained in:
Dapoolp 2025-07-31 13:33:39 +02:00
parent dbb07008f0
commit faa32c1fba
10 changed files with 90 additions and 59 deletions

View file

@ -143,6 +143,7 @@ export default class D20Roll extends DHRoll {
static postEvaluate(roll, config = {}) {
const data = super.postEvaluate(roll, config);
if (config.targets?.length) {
config.targetSelection = true;
config.targets.forEach(target => {
const difficulty = config.roll.difficulty ?? target.difficulty ?? target.evasion;
target.hit = this.isCritical || roll.total >= difficulty;