Ensure that the AttributeManager can still render in v13 due to the _del reference

This commit is contained in:
Oliver 2026-03-07 15:18:05 -07:00
parent 871493bacf
commit ec5f2feb7e

View file

@ -136,7 +136,8 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
async _prepareAttributeContext(ctx) {
const attrs = [];
for (const [id, data] of Object.entries(this.#attributes)) {
if (data == null || data == _del) { continue };
if (data == null) { continue };
if (game.release.generation >= 14 && data == _del) continue;
attrs.push({
id,
name: data.name,
@ -149,7 +150,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
};
// #endregion Data Prep
// #region Actions
// #region Actions
/**
* @param {Event} event
*/