fix can't end turn forced

This commit is contained in:
Alberto Xamin 2021-01-24 14:36:08 +01:00
parent dac5139ad5
commit 1201433343
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -967,7 +967,7 @@ class Player:
def end_turn(self, forced=False): def end_turn(self, forced=False):
print(f"{self.name} wants to end his turn") print(f"{self.name} wants to end his turn")
if not self.is_my_turn: if not self.is_my_turn and not forced:
return return
maxcards = self.lives if not self.character.check(self.game, chd.SeanMallory) else 10 maxcards = self.lives if not self.character.check(self.game, chd.SeanMallory) else 10
if len(self.hand) > maxcards and not forced: if len(self.hand) > maxcards and not forced: