From ad5311b80407e1001522cd6d52dbb4355ced78d2 Mon Sep 17 00:00:00 2001 From: Melon-PieldeSapo Date: Tue, 7 Jan 2025 17:18:54 +0100 Subject: [PATCH] Fix error with character generator missing class error while rolling tables --- module/windows/actor-generator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/windows/actor-generator.js b/module/windows/actor-generator.js index 9019929..9a2757d 100644 --- a/module/windows/actor-generator.js +++ b/module/windows/actor-generator.js @@ -144,21 +144,21 @@ export class DLActorGenerator extends FormApplication { async rollPatch(html) { - if (this.patchTable == null) { + if (!this.patchTable) { ui.notifications.error(game.i18n.localize("Mosh.CharacterGenerator.Error.NoClass")); } await this.rollTable(html, "system.class.patch", this.patchTable); } async rollTrinket(html) { - if (this.trinketTable == null) { + if (!this.trinketTable) { ui.notifications.error(game.i18n.localize("Mosh.CharacterGenerator.Error.NoClass")); } await this.rollTable(html, "system.class.trinket", this.trinketTable); } async rollLoadout(html) { - if (this.loadoutTable == null) { + if (!this.loadoutTable) { ui.notifications.error(game.i18n.localize("Mosh.CharacterGenerator.Error.NoClass")); return; }