Skip to content

Commit

Permalink
Merge pull request #176 from vtt-lair/feat/fail_buttons
Browse files Browse the repository at this point in the history
fix issue if no roll tables available and fix query player issue
  • Loading branch information
vtt-lair authored Jan 31, 2023
2 parents d9fc5c7 + 8649a6b commit 7f13312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/requestor.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class LMRTFYRequestor extends FormApplication {
abilities.length === 0 && saves.length === 0 && skills.length === 0 &&
formula.length === 0 &&
!formData['extra-death-save'] && !formData['extra-initiative'] && !formData['extra-perception'] &&
tables.length === 0
tables?.length === 0
)
) {
ui.notifications.warn(game.i18n.localize("LMRTFY.NothingNotification"));
Expand Down
2 changes: 1 addition & 1 deletion src/roller.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class LMRTFYRoller extends Application {
options = {... LMRTFY.advantageRollEvent };
break;
case 2:
options = event;
options = { event: event };
break;
}

Expand Down

0 comments on commit 7f13312

Please sign in to comment.