I was very happy when I found the D&D 5E - Mass Combat API as it seemed to offer everything I've been looking to incorporate into an upcoming session. The rules for the system were well thought out and seemed to promise the sort of unforgettable climactic battle I'd been looking for. (The page for the API script can be found here: Mass Combat Companion Script .) However, as soon as I took to using the API, I began consistently encountering the following error message whenever I tried to make a Formation from a copy of an NPC sheet/token: TypeError: trait.get(...).includes is not a function
TypeError: trait.get(...).includes is not a function
at apiscript.js:27408:103
at Array.filter (<anonymous>)
at apiscript.js:27408:66
at Timeout._onTimeout (/home/node/d20-api-server/node_modules/underscore/underscore-node-f.cjs:1079:17)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7) Well, I'm currently at a loss, and any assistance or suggestions here would be extremely appreciated. Thank you!