Skip to content

Commit

Permalink
hotfix: acquainted & revert commuting/ascetic to working versions (#1353
Browse files Browse the repository at this point in the history
)

Co-authored-by: Golbolco <[email protected]>
  • Loading branch information
R9H9 and Golbolco authored Dec 20, 2023
1 parent 190f484 commit f6d2ece
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Games/types/Mafia/roles/cards/Ascetic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = class Ascetic extends Card {
this.actions = [
{
priority: PRIORITY_UNTARGETABLE,
labels: ["stop", "absolute", "hidden"],
labels: ["stop", "hidden"],
run: function () {
if (this.game.getStateName() != "Night") return;

Expand Down
2 changes: 1 addition & 1 deletion Games/types/Mafia/roles/cards/Commuting.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = class Commuting extends Card {
this.actions = [
{
priority: PRIORITY_UNTARGETABLE,
labels: ["stop", "absolute", "hidden"],
labels: ["stop", "hidden"],
run: function () {
if (this.game.getStateName() != "Night") return;

Expand Down
3 changes: 2 additions & 1 deletion Games/types/Mafia/roles/cards/MeetWithAcquainted.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ module.exports = class MeetWithAcquainted extends Card {
if (player !== this.player) return;

for (let player of this.game.players) {
let modifiers = player.role.modifier;
if (
player.role.modifier === "Acquainted" &&
player !== this.player &&
modifiers.match(/Acquainted/) &&
!player.role.oblivious["self"]
) {
this.revealToPlayer(player);
Expand Down

0 comments on commit f6d2ece

Please sign in to comment.