From 5ece0e16e7ec6e0df77a67a806173adf0a33cf02 Mon Sep 17 00:00:00 2001 From: Golbolco Date: Tue, 12 Dec 2023 18:07:23 -0500 Subject: [PATCH] restless fix --- Games/types/Mafia/roles/cards/ActWhileDead.js | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Games/types/Mafia/roles/cards/ActWhileDead.js b/Games/types/Mafia/roles/cards/ActWhileDead.js index 3224794db..b949f6826 100644 --- a/Games/types/Mafia/roles/cards/ActWhileDead.js +++ b/Games/types/Mafia/roles/cards/ActWhileDead.js @@ -6,6 +6,35 @@ module.exports = class ActWhileDead extends Card { this.meetingMods = { "*": { + shouldMeet: function (meetingName) { + if (!this.player.alive) { + if ( + meetingName == "Village" || + meetingName == "Mafia" || + meetingName == "Cult" + ) { + return false; + } + + if ( + meetingName == "Party!" || + meetingName == "Hot Springs" || + meetingName == "Banquet" || + meetingName.startsWith("Jail with") || + meetingName.startsWith("Seance with") + ) { + return false; + } else { + return true; + } + } else { + if (meetingName == "Graveyard") { + return false; + } else { + return false; + } + } + }, whileDead: function (meetingName) { if ( meetingName == "Village" ||