Fixed so missing statuses doesn't cause crashes

This commit is contained in:
WBHarry 2025-08-13 18:45:52 +02:00
parent 72edef0a04
commit 3721f9ee3f
2 changed files with 9 additions and 7 deletions

View file

@ -118,7 +118,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
for (const statusId of this.statuses) {
const status = CONFIG.statusEffects.find(s => s.id === statusId);
tags.push(game.i18n.localize(status.name));
if (status) tags.push(game.i18n.localize(status.name));
}
return tags;