mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

Players don't understand languages without token on the scene. #171

Closed szefo09 closed 3 years ago

szefo09 commented 3 years ago

Describe the bug Players and GMs don't understand languages without token on the scene.

To Reproduce Steps to reproduce the behavior:

  1. Write something in any language (Common f.e.)
  2. Remove player's token from active scene.
  3. Login as the player.
  4. Even if the player character knows Common, they don't understand anything in chat until you place their token on the scene.

Expected behavior Players should be able to read the message even if they have no characters on the current scene.

mclemente commented 3 years ago

Yeah, the function that got a character's languages was triggered when its token was loaded, so when messages were loaded right after, the player didn't have any known languages. Should be fixed now.