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) { async _prepareAttributeContext(ctx) {
const attrs = []; const attrs = [];
for (const [id, data] of Object.entries(this.#attributes)) { 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({ attrs.push({
id, id,
name: data.name, name: data.name,