Loosened checks on statuses to make module compatible

This commit is contained in:
WBHarry 2025-12-09 22:31:06 +01:00
parent 2b1535333a
commit f6a4070c02
3 changed files with 4 additions and 2 deletions

View file

@ -854,7 +854,7 @@ export default class DhpActor extends Actor {
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) {