hanna-greaves / Token-Says

Tokens speak dialog or play audio based on in game actions.
GNU General Public License v3.0
6 stars 3 forks source link

speaksLang uses .has on an Array #107

Closed DianeOfTheMoon closed 1 year ago

DianeOfTheMoon commented 1 year ago

The speaksLang function in say.js was changed to use .has() but on an Array. I believe this should be .includes(). As it stands, functionality with polyglot seems to be broken.

napolitanod commented 1 year ago

thank you for this pull request - the prior update to for treatment as a set was due to dnd5e updates. For whatever reason I thought Polyglot was only dnd5e. I have updated the code to use the Polyglot api to check for languages and this is in 1.11.3

Please give that a shot within your system and let me know if there is still an issue

DianeOfTheMoon commented 1 year ago

Yep, works great. :)