Closed Aedif closed 8 months ago
I tested this again and this does not appear to be a conflcit between TA and Walled Templates. Walled Template simply doesn't handle Tokens without Actors properly.
Line marked as Issue #65
should be changed to return an empty array.
function attachedTemplates() {
if (!this?.actor?.effects) return; // Issue #65.
return this.actor.effects
.filter((e) => e.origin && e.origin.includes('MeasuredTemplate'))
.map((e) => fromUuidSync(e.origin)?.object)
.filter((t) => Boolean(t)); // Drop undefined templates
}
function attachedTemplates() {
if (!this?.actor?.effects) return []; // Issue #65.
return this.actor.effects
.filter((e) => e.origin && e.origin.includes('MeasuredTemplate'))
.map((e) => fromUuidSync(e.origin)?.object)
.filter((t) => Boolean(t)); // Drop undefined templates
}
Thumbs up
Should be fixed in v0.7.0. Thanks!
Prevents pretty much all interaction with a token. Appears to be a conflict between Walled Templates and Token Attacher that occurs on tokens that had their Actors deleted.
Steps to reproduce (tried this in fresh world too):