Fixed undefined case (#898)

This commit is contained in:
WBHarry 2025-08-13 14:17:37 +02:00 committed by GitHub
parent b5642db2cd
commit 6d789aceb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
acc.push(effect);
const currentStatusActiveEffects = acc.filter(
x => x.statuses.size === 1 && x.name === game.i18n.localize(statusMap.get(x.statuses.first()).name)
x => x.statuses.size === 1 && x.name === game.i18n.localize(statusMap.get(x.statuses.first())?.name)
);
for (var status of effect.statuses) {
if (!currentStatusActiveEffects.find(x => x.statuses.has(status))) {