Release 1.8.2

This commit is contained in:
Vlyan
2022-06-24 20:23:28 +02:00
parent ed79c53907
commit d74d91d8b8
7 changed files with 99 additions and 54 deletions

View File

@@ -745,7 +745,7 @@ export class HelpersL5r5e {
/**
* Shortcut method to draw names to chat (private) from a table in compendium without importing it
* @param {String} pack Compendium name
* @param {String} tableName Table name in this compendium
* @param {String} tableName Table name/id in this compendium
* @param {String} retrieve How many draw we do
* @param {object} opt drawMany config option object
* @return {Promise<{RollTableDraw}>} The drawn results
@@ -758,7 +758,7 @@ export class HelpersL5r5e {
}
await comp.getDocuments();
const table = await comp.getName(tableName);
const table = await (/^[a-zA-Z0-9]{16}$/.test(tableName) ? comp.get(tableName) : comp.getName(tableName));
if (!table) {
console.log(`L5R5E | Table not found[${tableName}]`, comp, table);
return;