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: | ||||
|                     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: | ||||
|             return self.end_turn(forced=True) | ||||
|         self.scrapped_cards = 0 | ||||
|         self.can_play_ranch = True | ||||
|         self.is_playing_ranch = False | ||||
|         self.can_play_vendetta = can_play_vendetta | ||||
|         self.sio.emit('chat_message', room=self.game.name, | ||||
|                       data=f'_turn|{self.name}') | ||||
|         print(f'{self.name}: I was notified that it is my turn') | ||||
|         if not again: | ||||
|             self.sio.emit('chat_message', room=self.game.name, | ||||
|                           data=f'_turn|{self.name}') | ||||
|             print(f'{self.name}: I was notified that it is my turn') | ||||
|         self.was_shot = False | ||||
|         self.is_my_turn = True | ||||
|         self.is_waiting_for_action = True | ||||
| @ -592,7 +593,7 @@ class Player: | ||||
|                 player.notify_self() | ||||
|                 self.sio.emit('chat_message', room=self.game.name, data=f'_fratelli_sangue|{self.name}|{player.name}') | ||||
|             except: pass | ||||
|             self.play_turn() | ||||
|             self.play_turn(again = True) | ||||
|         elif self.is_using_checchino and self.game.check_event(ce.Cecchino): | ||||
|             try: | ||||
|                 if self.available_cards[card_index]['name'] != '': | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Giulio
						Giulio