Skip to content

Commit

Permalink
hotfix: undertaker (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
R9H9 authored Dec 18, 2023
1 parent 3e7a4a3 commit 6a147ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Games/types/Mafia/roles/cards/CleanCondemnation.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = class CleanCondemnation extends Card {

var condemnedTarget;
for (let action of this.game.actions[0]) {
if (action.hasLabel("condemn"))) {
if (action.hasLabel("condemn")) {
condemnedTarget = action.target;
break;
}
Expand All @@ -27,7 +27,7 @@ module.exports = class CleanCondemnation extends Card {

const roleName = condemnedTarget.getRoleAppearance("condemn");
this.actor.role.lastCleanedAppearance = roleName;
condemnedTarget.role.appearance.death = null;
condemnedTarget.role.appearance.condemn = null;
this.actor.role.lastCleanedWill = condemnedTarget.lastWill;
condemnedTarget.lastWill = null;

Expand All @@ -41,7 +41,7 @@ module.exports = class CleanCondemnation extends Card {
};
this.listeners = {
state: function () {
if (this.game.getStateName() != "Day") return;
if (this.game.getStateName() != "Night") return;

const cleanedPlayer = this.cleanedPlayer;
if (!cleanedPlayer) return;
Expand Down

0 comments on commit 6a147ba

Please sign in to comment.