Added next bt in 20Q

Disable roll button if no dice selected
This commit is contained in:
Vlyan
2021-01-05 11:45:40 +01:00
parent f7e10e37f7
commit 1a292feee2
7 changed files with 30 additions and 3 deletions

View File

@@ -241,6 +241,7 @@ export class DicePickerDialog extends FormApplication {
actorIsPc: !this._actor || this._actor.data?.type === "character",
canUseVoidPoint:
this.object.difficulty.hidden || !this._actor || this._actor.data.data.void_points.value > 0,
disableSubmit: this.object.skill.value < 1 && this.object.ring.value < 1,
};
}