fix fratelli di sangue
the start of a game turn was printed twice in the chat
This commit is contained in:
parent
36d3ace0cc
commit
ba150ede07
@ -313,16 +313,17 @@ class Player:
|
|||||||
else:
|
else:
|
||||||
self.choose(randrange(0, len(target.hand)+len(target.equipment)))
|
self.choose(randrange(0, len(target.hand)+len(target.equipment)))
|
||||||
|
|
||||||
def play_turn(self, can_play_vendetta = True):
|
def play_turn(self, can_play_vendetta = True, again = False):
|
||||||
if (self.lives == 0 or self.is_dead) and not self.is_ghost:
|
if (self.lives == 0 or self.is_dead) and not self.is_ghost:
|
||||||
return self.end_turn(forced=True)
|
return self.end_turn(forced=True)
|
||||||
self.scrapped_cards = 0
|
self.scrapped_cards = 0
|
||||||
self.can_play_ranch = True
|
self.can_play_ranch = True
|
||||||
self.is_playing_ranch = False
|
self.is_playing_ranch = False
|
||||||
self.can_play_vendetta = can_play_vendetta
|
self.can_play_vendetta = can_play_vendetta
|
||||||
self.sio.emit('chat_message', room=self.game.name,
|
if not again:
|
||||||
data=f'_turn|{self.name}')
|
self.sio.emit('chat_message', room=self.game.name,
|
||||||
print(f'{self.name}: I was notified that it is my turn')
|
data=f'_turn|{self.name}')
|
||||||
|
print(f'{self.name}: I was notified that it is my turn')
|
||||||
self.was_shot = False
|
self.was_shot = False
|
||||||
self.is_my_turn = True
|
self.is_my_turn = True
|
||||||
self.is_waiting_for_action = True
|
self.is_waiting_for_action = True
|
||||||
@ -592,7 +593,7 @@ class Player:
|
|||||||
player.notify_self()
|
player.notify_self()
|
||||||
self.sio.emit('chat_message', room=self.game.name, data=f'_fratelli_sangue|{self.name}|{player.name}')
|
self.sio.emit('chat_message', room=self.game.name, data=f'_fratelli_sangue|{self.name}|{player.name}')
|
||||||
except: pass
|
except: pass
|
||||||
self.play_turn()
|
self.play_turn(again = True)
|
||||||
elif self.is_using_checchino and self.game.check_event(ce.Cecchino):
|
elif self.is_using_checchino and self.game.check_event(ce.Cecchino):
|
||||||
try:
|
try:
|
||||||
if self.available_cards[card_index]['name'] != '':
|
if self.available_cards[card_index]['name'] != '':
|
||||||
|
Loading…
Reference in New Issue
Block a user