mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Fixed undefined case (#898)
This commit is contained in:
parent
b5642db2cd
commit
6d789aceb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue