From c843d209fd366f3ebe25459294a4a17307edce87 Mon Sep 17 00:00:00 2001 From: Sylvie <79229391+nearbear@users.noreply.github.com> Date: Sat, 14 Dec 2024 04:38:13 -0700 Subject: [PATCH] Fixed turncoat guiser kill interaction (#1782) 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 --- Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js b/Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js index f583efd38..bb727e6d4 100644 --- a/Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js +++ b/Games/types/Mafia/roles/cards/TurnIntoTraitorOnMafiaKill.js @@ -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,