mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Cost & Uses consume to execute
This commit is contained in:
parent
f747dc3c32
commit
9d9c636dbc
5 changed files with 109 additions and 101 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue