Fixed logic

This commit is contained in:
WBHarry 2025-07-16 16:38:10 +02:00
parent f33dc8c4af
commit ea708e85e2
7 changed files with 20 additions and 11 deletions

View file

@ -10,7 +10,7 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
this.effects.overlay = null;
// Categorize effects
const activeEffects = Array.from(this.actor.effects);
const activeEffects = this.actor ? Array.from(this.actor.effects).filter(x => !x.disabled) : [];
const overlayEffect = activeEffects.findLast(e => e.img && e.getFlag('core', 'overlay'));
// Draw effects