From d7486d9898c43dc4c9371f75102dc466818209fd Mon Sep 17 00:00:00 2001 From: RH <104711111+R9H9@users.noreply.github.com> Date: Sat, 2 Dec 2023 16:38:40 +1100 Subject: [PATCH] Fix Kleptomanic modifier (#1264) --- Games/types/Mafia/roles/cards/StealFromTargets.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Games/types/Mafia/roles/cards/StealFromTargets.js b/Games/types/Mafia/roles/cards/StealFromTargets.js index bf1bc119b..c90d95afc 100644 --- a/Games/types/Mafia/roles/cards/StealFromTargets.js +++ b/Games/types/Mafia/roles/cards/StealFromTargets.js @@ -11,10 +11,11 @@ module.exports = class StealFromTargets extends Card { labels: ["stealItem"], run: function () { if (this.game.getStateName() != "Night") return; + if (!this.actor.alive) return; - let visits = this.getVisitors(this.actor); - visitors.map((v) => this.stealAllItems(v)); + let visits = this.getVisits(this.actor); + visits.map((v) => this.stealAllItems(v)); }, }, ];