Cost & Uses consume to execute

This commit is contained in:
Dapoolp 2025-08-22 13:07:28 +02:00
parent f747dc3c32
commit 9d9c636dbc
5 changed files with 109 additions and 101 deletions

View file

@ -36,9 +36,10 @@ export default class TargetField extends fields.SchemaField {
}
config.targets = targets.map(t => TargetField.formatTarget.call(this, t));
const hasTargets = TargetField.checkTargets.call(this, this.target.amount, config.targets);
if (config.isFastForward && !hasTargets)
return ui.notifications.warn('Too many targets selected for that actions.');
return hasTargets;
if (config.dialog.configure === false && !hasTargets) {
ui.notifications.warn('Too many targets selected for that actions.');
return hasTargets;
}
}
/**