Skip to content

Commit

Permalink
restless fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Golbolco authored Dec 12, 2023
1 parent 51eaf66 commit 5ece0e1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Games/types/Mafia/roles/cards/ActWhileDead.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" ||
Expand Down

0 comments on commit 5ece0e1

Please sign in to comment.