flyingsquad / htmlfilter

1 stars 1 forks source link

Pathfinder 2e v5.15 does not work #1

Closed kagangtuya-star closed 4 months ago

kagangtuya-star commented 4 months ago

image

Pathfinder 2e v5.15 does not work,The printed page is blank.

The following error occurred.Both filters files do not work properly.

foundry.js:68326  TypeError: Cannot read properties of undefined (reading 'value')
    at pf2eObject._initialize (pf2efilter.js:160:55)
    at new SystemObject (systemobject.js:160:8)
    at new pf2eObject (pf2efilter.js:12:3)
    at HTMLFilter.filter (htmlfilter.js:845:24)
    at Object.onclick (htmlfilter.js:1014:6)
kagangtuya-star commented 4 months ago
// Modifying the code in pf2efilter.js on line 160 fixes the problem
//      this.defs['alignment'] = a.system.details.alignment.value;
        this.defs['alignment'] = a.system.details.alignment;
flyingsquad commented 4 months ago

Thanks for that. I've updated the file and the latest release has the fix.