fix fantasma dead man

This commit is contained in:
Alberto Xamin 2023-01-24 13:56:28 +00:00
parent 4c337c560c
commit 5193c5aa47

View File

@ -567,11 +567,9 @@ class Game:
pl.lives = 2 pl.lives = 2
pl.hand.append(self.deck.draw()) pl.hand.append(self.deck.draw())
pl.hand.append(self.deck.draw()) pl.hand.append(self.deck.draw())
if any((True for c in pl.equipment if isinstance(c, tvosc.Fantasma))): if (ghost := next((c for c in pl.equipment if isinstance(c, tvosc.Fantasma)), None)) is not None:
for c in pl.equipment: self.deck.scrap(ghost)
if isinstance(c, tvosc.Fantasma): pl.equipment.remove(ghost)
self.deck.scrap(pl.equipment.pop(c))
break
pl.notify_self() pl.notify_self()
elif self.check_event(ceh.CittaFantasma) or self.players[self.turn].is_ghost: elif self.check_event(ceh.CittaFantasma) or self.players[self.turn].is_ghost:
print(f'{self.name}: {self.players[self.turn]} is dead, event ghost') print(f'{self.name}: {self.players[self.turn]} is dead, event ghost')