Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed turncoat guiser kill interaction #1782

Merged

Conversation

nearbear
Copy link
Contributor

@nearbear nearbear commented Dec 14, 2024

As is, guiser voting yes to steal identity while targeting a turncoat with mafia meeting will convert them into a traitor then kill them.

Turncoat would listen to the emitted immune event when guiser steal identity action checks for immunity, causing the conversion to happen sooner in priority than maf kill. Adding temp immunity allows turncoat to keep its mafia immunity for the entire night that it gets converted.

@Golbolco Golbolco merged commit c843d20 into UltiMafia:master Dec 14, 2024
@nearbear nearbear deleted the bugfix/turncoat-guiser-interaction branch December 14, 2024 18:37
Golbolco added a commit that referenced this pull request Dec 18, 2024
For: #22

- Fixed guiser going thru armor immunity. It was the same bug in nature
as the turncoat bug from
#1782 so I tried a different
approach to fixing it this time. The dominates check for identity
stealer should no longer cause immune events.
- Fixed alerts being given to the wrong player when guising occurred;
swapIdentity now additionally swaps the recipients of alerts that are
presently queued.
- Added some guiser tests. The sockets.js change supports this because
it's a necessary function for swapIdentity.

Tested the alerts issue locally by having the gunsmith give a gun to a
cop then verifying that when they were guised, the dead player received
the alert for the gun and not the guiser.

Co-authored-by: Golbolco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants