Added createDialog

This commit is contained in:
WBHarry 2026-02-09 23:35:50 +01:00
parent a76479e9b7
commit 94262ba6ec
4 changed files with 9 additions and 1 deletions

View file

@ -62,7 +62,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
throw new Error('The array of sub-types to restrict to must not be empty.');
}
const creatableEffects = ['base', 'armor'];
const creatableEffects = types || ['base', 'armor'];
const documentTypes = this.TYPES.filter(type => creatableEffects.includes(type)).map(type => {
const labelKey = `TYPES.ActiveEffect.${type}`;
const label = game.i18n.has(labelKey) ? game.i18n.localize(labelKey) : type;