Skip to content

Commit

Permalink
Fixed turncoat guiser kill interaction (#1782)
Browse files Browse the repository at this point in the history
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.

Co-authored-by: Golbolco <[email protected]>
  • Loading branch information
nearbear and Golbolco authored Dec 14, 2024
1 parent 72048ce commit c843d20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ module.exports = class TurnIntoTraitorOnMafiaKill extends Card {
return;
}

this.player.tempImmunity["mafia"] = Infinity;

let convertAction = new Action({
labels: ["convert"],
actor: this.player,
Expand Down

0 comments on commit c843d20

Please sign in to comment.