eDonnes124 / Town-Of-Us-R

An Among Us mod containing a bunch of roles
GNU General Public License v3.0
345 stars 140 forks source link

Fix lovers dying after meetings #130

Closed alecxvs closed 1 year ago

alecxvs commented 1 year ago

The assassinated players list is only cleared after a meeting, but that function doesn't get called if the game ends mid-meeting (due to assassinations for instance). This is to clear it on return to the lobby.

The player references in the list are invalid between games but retain a valid PlayerId and can still be "exiled" which runs the lover mod Die function. So when the game ends mid-meeting, the list is retained across games; and after the next meeting, if any of the lovers have a player id in the assassinated players list, it ends up killing the invalid player (nothing happens), the other lover, then the lover.

eDonnes124 commented 1 year ago

I actually already fixed it, just dealing with a separate issue rn before I release v4.0.4 for the new version.