Closed ShrimpCryptid closed 1 year ago
Visit the preview URL for this PR (updated for commit ac75a16):
https://secret-hitler-online--pr85-fix-investigation-pa-ugrjdryc.web.app
(expires Sat, 07 Oct 2023 04:42:41 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 1ff8fffee68997d863205853d16b55705cc85efb
Fixes #84, "President [Investigation] shows wrong loyalty".
This was caused by a bad assumption on the original Investigation prompt card, which assumed it had access to all player roles (which is untrue as of the most recent update). I've changed it so that the prompt gets its data from a packet sent by the server instead, which I think was what it was originally supposed to do.
I've tested this change locally and can confirm that I get the correct role as both Liberal and Fascist players.