From 7767f75604b936d4fcbe1bd91b9b00263d071b90 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Tue, 10 Jan 2023 20:16:49 +0000 Subject: [PATCH] fix ghost card on ghost town --- backend/bang/players.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/bang/players.py b/backend/bang/players.py index 641892f..71adbf1 100644 --- a/backend/bang/players.py +++ b/backend/bang/players.py @@ -211,8 +211,8 @@ class Player: def notify_self(self): if any((True for c in self.equipment if isinstance(c, tvosc.Fantasma))): self.is_ghost = True - elif self.is_ghost and not self.game.check_event(ceh.CittaFantasma): - self.is_ghost = False + elif self.is_ghost: + self.is_ghost = self.game.check_event(ceh.CittaFantasma) and self.is_my_turn if self.is_ghost: self.lives = 0 if self.pending_action == PendingAction.DRAW and self.game.check_event(ce.Peyote): self.available_cards = [{